summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2016-06-19 18:30:00 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2016-07-22 06:16:50 (GMT)
commit2b909c08f526536d4dd84dfe68edf22682ae88ca (patch)
tree8ad9d713c5a9c429afd21ce099a55313258c6cb1 /Source/cmGlobalXCodeGenerator.cxx
parent7bfbcc75a3158677897b2a80b02500425620e714 (diff)
downloadCMake-2b909c08f526536d4dd84dfe68edf22682ae88ca.zip
CMake-2b909c08f526536d4dd84dfe68edf22682ae88ca.tar.gz
CMake-2b909c08f526536d4dd84dfe68edf22682ae88ca.tar.bz2
Honor BUNDLE_EXTENSION also for App Bundles (#16148)
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 23fad51..52f8da5 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1878,6 +1878,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
// Handle bundles and normal executables separately.
if (gtgt->GetPropertyAsBool("MACOSX_BUNDLE")) {
+ 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 executable name. This avoids creating