diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2014-12-16 21:22:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-17 16:24:02 (GMT) |
commit | 207b7af00be53f0779c4896f311f130455d3aadd (patch) | |
tree | 1df419a525bdd346b84229cc9473b17dff593e84 /Source/cmTarget.cxx | |
parent | ddd193fcddbf7e81ffcd51a6e51227342a78cc4e (diff) | |
download | CMake-207b7af00be53f0779c4896f311f130455d3aadd.zip CMake-207b7af00be53f0779c4896f311f130455d3aadd.tar.gz CMake-207b7af00be53f0779c4896f311f130455d3aadd.tar.bz2 |
cmTarget: Use GetCFBundleDirectory within GetFullNameInternal
Replace duplicated code by call to GetCFBundleDirectory.
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 37aa26e..9c4801e 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -4056,15 +4056,8 @@ void cmTarget::GetFullNameInternal(const std::string& config, 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/"; + fw_prefix = this->GetCFBundleDirectory(config, false); + fw_prefix += "/"; targetPrefix = fw_prefix.c_str(); targetSuffix = 0; } |