diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-02-22 18:00:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-23 18:07:33 (GMT) |
commit | 78ec4b16400111cab7cc0de3e7544b1b071b2abe (patch) | |
tree | 0e27779990cb9aca0fea9f42cf1e195b188e3da8 /Source/cmOSXBundleGenerator.cxx | |
parent | cb16c7844dce627ab40f404c6ac49db3cde7b0c0 (diff) | |
download | CMake-78ec4b16400111cab7cc0de3e7544b1b071b2abe.zip CMake-78ec4b16400111cab7cc0de3e7544b1b071b2abe.tar.gz CMake-78ec4b16400111cab7cc0de3e7544b1b071b2abe.tar.bz2 |
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>
Diffstat (limited to 'Source/cmOSXBundleGenerator.cxx')
-rw-r--r-- | Source/cmOSXBundleGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmOSXBundleGenerator.cxx b/Source/cmOSXBundleGenerator.cxx index 55e20ab..a8eef82 100644 --- a/Source/cmOSXBundleGenerator.cxx +++ b/Source/cmOSXBundleGenerator.cxx @@ -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); } |