From 207b7af00be53f0779c4896f311f130455d3aadd Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Tue, 16 Dec 2014 22:22:07 +0100 Subject: [PATCH] cmTarget: Use GetCFBundleDirectory within GetFullNameInternal Replace duplicated code by call to GetCFBundleDirectory. Signed-off-by: Gregor Jasny --- Source/cmTarget.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 37aa26e34..9c4801eaa 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; }