diff options
author | Brad King <brad.king@kitware.com> | 2013-06-04 13:02:46 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-06-04 13:02:46 (GMT) |
commit | 05e47f21222f0c14735ce1431a74a5ad974cb1a2 (patch) | |
tree | 1ad5af2b4247cd4feeeb08a0f7f01194ef3bb8b5 /Source/cmTarget.cxx | |
parent | b418327d1b85944d137913faf6c04537b5894e2f (diff) | |
parent | 483e208482ff46532e7ae48659e569580a88af9c (diff) | |
download | CMake-05e47f21222f0c14735ce1431a74a5ad974cb1a2.zip CMake-05e47f21222f0c14735ce1431a74a5ad974cb1a2.tar.gz CMake-05e47f21222f0c14735ce1431a74a5ad974cb1a2.tar.bz2 |
Merge topic 'cfbundle-location'
483e208 OS X: Fix getting of CFBundle LOCATION property.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index f1d0ac3..af92ccc 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -3628,7 +3628,7 @@ const char* cmTarget::NormalGetLocation(const char* config) this->Location += cfgid; } - if(this->IsCFBundleOnApple() || this->IsAppBundleOnApple()) + if(this->IsAppBundleOnApple()) { std::string macdir = this->BuildMacContentDirectory("", config, false); if(!macdir.empty()) @@ -4332,7 +4332,7 @@ std::string cmTarget::NormalGetFullPath(const char* config, bool implib, { std::string fpath = this->GetDirectory(config, implib); fpath += "/"; - if(this->IsCFBundleOnApple() || this->IsAppBundleOnApple()) + if(this->IsAppBundleOnApple()) { fpath = this->BuildMacContentDirectory(fpath, config, false); fpath += "/"; @@ -4478,6 +4478,21 @@ void cmTarget::GetFullNameInternal(const char* config, targetSuffix = 0; } + if(this->IsCFBundleOnApple()) + { + fw_prefix = this->GetOutputName(config, false); + fw_prefix += "."; + const char *ext = this->GetProperty("BUNDLE_EXTENSION"); + if (!ext) + { + ext = "bundle"; + } + fw_prefix += ext; + fw_prefix += "/Contents/MacOS/"; + targetPrefix = fw_prefix.c_str(); + targetSuffix = 0; + } + // Begin the final name with the prefix. outPrefix = targetPrefix?targetPrefix:""; |