diff options
author | Brad King <brad.king@kitware.com> | 2008-07-03 17:28:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-07-03 17:28:49 (GMT) |
commit | 264af17bfcb78cd08c1f5542269cc74dd733b714 (patch) | |
tree | 3f146ae168929bea4416ac4ba20fee69532601f2 /Source/cmGlobalXCodeGenerator.cxx | |
parent | 7950b99d9dd10a1aeb59deb61a0bb4d290c4596e (diff) | |
download | CMake-264af17bfcb78cd08c1f5542269cc74dd733b714.zip CMake-264af17bfcb78cd08c1f5542269cc74dd733b714.tar.gz CMake-264af17bfcb78cd08c1f5542269cc74dd733b714.tar.bz2 |
BUG: Fix Xcode per-config bundle name in Info.plist
- The Xcode generator creates one Info.plist input file which is
converted at build time by Xcode and placed in the final bundle.
- The <CONFIG>_OUTPUT_NAME target property can place different content
for the exe name in Info.plist on a per-configuration basis.
- Instead of generating a per-config Info.plist input file just let
Xcode put the name in at build time using the $(EXECUTABLE_NAME) var.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index d00a19a..2381bc1 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1480,8 +1480,12 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target, plist += "/"; plist += target.GetName(); plist += "Info.plist"; + // Xcode will create the final version of Info.plist at build time, + // so let it replace the executable name. This avoids creating + // a per-configuration Info.plist file. this->CurrentLocalGenerator - ->GenerateAppleInfoPList(&target, productName.c_str(), plist.c_str()); + ->GenerateAppleInfoPList(&target, "$(EXECUTABLE_NAME)", + plist.c_str()); std::string path = this->ConvertToRelativeForXCode(plist.c_str()); buildSettings->AddAttribute("INFOPLIST_FILE", |