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:
parent
069090e347
commit
55a885da00
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue