summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2016-06-18 20:59:40 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2016-06-18 21:23:32 (GMT)
commite36e5a2680f34c64773944b152e5337f8951a644 (patch)
treeea9f62005b9c432bb7ea4d1076b5b662a9a73118 /Source/cmGlobalXCodeGenerator.cxx
parent2e351f892e8eeaec2ecfe3b8a047c340a8718f10 (diff)
downloadCMake-e36e5a2680f34c64773944b152e5337f8951a644.zip
CMake-e36e5a2680f34c64773944b152e5337f8951a644.tar.gz
CMake-e36e5a2680f34c64773944b152e5337f8951a644.tar.bz2
Xcode: Properly handle BUNDLE_EXTENSION
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index d30830a..e82cb16 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1801,6 +1801,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
extraLinkOptions += " ";
extraLinkOptions += createFlags;
}
+ const char* ext = gtgt->GetProperty("BUNDLE_EXTENSION");
+ if (ext) {
+ buildSettings->AddAttribute("WRAPPER_EXTENSION",
+ this->CreateString(ext));
+ }
std::string plist = this->ComputeInfoPListLocation(gtgt);
// Xcode will create the final version of Info.plist at build time,
// so let it replace the cfbundle name. This avoids creating