summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.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/cmGeneratorTarget.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/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index c9cbd00..f45d4f0 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1350,7 +1350,12 @@ std::string cmGeneratorTarget::GetAppBundleDirectory(const std::string& config,
bool contentOnly) const
{
std::string fpath = this->GetFullName(config, false);
- fpath += ".app";
+ fpath += ".";
+ const char* ext = this->GetProperty("BUNDLE_EXTENSION");
+ if (!ext) {
+ ext = "app";
+ }
+ fpath += ext;
if (!this->Makefile->PlatformIsAppleIos()) {
fpath += "/Contents";
if (!contentOnly) {