mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
cmTarget: Use GetCFBundleDirectory within GetFullNameInternal
Replace duplicated code by call to GetCFBundleDirectory. Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user