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:
parent
cb16c7844d
commit
78ec4b1640
|
@ -181,8 +181,9 @@ void cmOSXBundleGenerator::CreateCFBundle(const std::string& targetName,
|
||||||
std::string plist = root + "/" +
|
std::string plist = root + "/" +
|
||||||
this->GT->Target->GetCFBundleDirectory(this->ConfigName, true);
|
this->GT->Target->GetCFBundleDirectory(this->ConfigName, true);
|
||||||
plist += "/Info.plist";
|
plist += "/Info.plist";
|
||||||
|
std::string name = cmSystemTools::GetFilenameName(targetName);
|
||||||
this->LocalGenerator->GenerateAppleInfoPList(this->GT->Target,
|
this->LocalGenerator->GenerateAppleInfoPList(this->GT->Target,
|
||||||
targetName,
|
name,
|
||||||
plist.c_str());
|
plist.c_str());
|
||||||
this->Makefile->AddCMakeOutputFile(plist);
|
this->Makefile->AddCMakeOutputFile(plist);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue