OS X: Fix Info.plist placement in a CFBundle

Fix cmOSXBundleGenerator::CreateCFBundle to place Info.plist under the
same root directory as the rest of the bundle.  Without this, Info.plist
was placed into CMAKE_BINARY_DIR, not CMAKE_CURRENT_BINARY_DIR because
the target path was not generated correctly.
This commit is contained in:
Tim Blechmann 2014-03-25 16:16:51 +01:00 committed by Brad King
parent e40fbbb074
commit 149ce5db5e
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ void cmOSXBundleGenerator::CreateCFBundle(const std::string& targetName,
// Configure the Info.plist file. Note that it needs the executable name
// to be set.
std::string plist =
std::string plist = root + "/" +
this->Target->GetCFBundleDirectory(this->ConfigName, true);
plist += "/Info.plist";
this->LocalGenerator->GenerateAppleInfoPList(this->Target,