summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2014-09-23 14:59:08 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2014-09-23 14:59:08 (GMT)
commit55a885da00985823253827e2e44f9e02f2999b71 (patch)
treebfa103694291d006cfbc22882720c6ceccfa19a1 /Source
parent069090e347078d1e3998e13e49d2d50dae013ef0 (diff)
downloadCMake-55a885da00985823253827e2e44f9e02f2999b71.zip
CMake-55a885da00985823253827e2e44f9e02f2999b71.tar.gz
CMake-55a885da00985823253827e2e44f9e02f2999b71.tar.bz2
Teach try_compile COPY_FILE to look for IOS app bundles.
The COPY_FILE option on try_compile never looked for IOS application bundles. This caused it to fail if the CMAKE_MACOSX_BUNDLE was set.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCoreTryCompile.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index ed19851..bc5708d 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -634,6 +634,10 @@ void cmCoreTryCompile::FindOutputFile(const std::string& targetName)
searchDirs.push_back(tmp);
}
searchDirs.push_back("/Debug");
+#if defined(__APPLE__)
+ std::string app = "/Debug/" + targetName + ".app";
+ searchDirs.push_back(app);
+#endif
searchDirs.push_back("/Development");
for(std::vector<std::string>::const_iterator it = searchDirs.begin();