OS X: Shorten CFBundleExecutable to file name only

Shorten the CFBundleExecutable in the PList file of Bundles to
the file name only as it is done for Frameworks, too.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
This commit is contained in:
Gregor Jasny 2015-02-22 19:00:10 +01:00 committed by Brad King
parent cb16c7844d
commit 78ec4b1640
1 changed files with 2 additions and 1 deletions

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);
}