summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-24 14:12:47 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-24 14:12:47 (GMT)
commitf67b8065f603392ca794cc6f5c07bbbe6b077526 (patch)
tree8eb7a20e1be85c375a123a16bb13ed9646e45f33
parent41a16f07c3b57e05927ba7706a4e3cebd7768ddf (diff)
parent78ec4b16400111cab7cc0de3e7544b1b071b2abe (diff)
downloadCMake-f67b8065f603392ca794cc6f5c07bbbe6b077526.zip
CMake-f67b8065f603392ca794cc6f5c07bbbe6b077526.tar.gz
CMake-f67b8065f603392ca794cc6f5c07bbbe6b077526.tar.bz2
Merge topic 'osx-CFBundleExecutable'
78ec4b16 OS X: Shorten CFBundleExecutable to file name only
-rw-r--r--Source/cmOSXBundleGenerator.cxx3
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);
}