From 55a885da00985823253827e2e44f9e02f2999b71 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 23 Sep 2014 10:59:08 -0400 Subject: [PATCH] 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. --- Source/cmCoreTryCompile.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index ed19851ac..bc5708d35 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::const_iterator it = searchDirs.begin();