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.
This commit is contained in:
Bill Hoffman 2014-09-23 10:59:08 -04:00
parent 069090e347
commit 55a885da00
1 changed files with 4 additions and 0 deletions

View File

@ -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();