Merge topic 'osx-CFBundleExecutable'

78ec4b16 OS X: Shorten CFBundleExecutable to file name only
This commit is contained in:
Brad King 2015-02-24 09:12:47 -05:00 committed by CMake Topic Stage
commit f67b8065f6

View File

@ -181,8 +181,9 @@ void cmOSXBundleGenerator::CreateCFBundle(const std::string& targetName,
std::string plist = root + "/" +
this->GT->Target->GetCFBundleDirectory(this->ConfigName, true);
plist += "/Info.plist";
std::string name = cmSystemTools::GetFilenameName(targetName);
this->LocalGenerator->GenerateAppleInfoPList(this->GT->Target,
targetName,
name,
plist.c_str());
this->Makefile->AddCMakeOutputFile(plist);
}