cmGeneratorTarget: Call GetFrameworkDirectory in GetFullNameInternal

This commit is contained in:
Gregor Jasny
2017-03-28 09:49:40 +02:00
parent 32e9d0ca23
commit 013ffe76e7

View File

@@ -3222,13 +3222,7 @@ void cmGeneratorTarget::GetFullNameInternal(const std::string& config,
// frameworks have directory prefix but no suffix
std::string fw_prefix;
if (this->IsFrameworkOnApple()) {
fw_prefix = this->GetOutputName(config, false);
fw_prefix += ".";
const char* ext = this->GetProperty("BUNDLE_EXTENSION");
if (!ext) {
ext = "framework";
}
fw_prefix += ext;
fw_prefix = this->GetFrameworkDirectory(config, ContentLevel);
fw_prefix += "/";
targetPrefix = fw_prefix.c_str();
targetSuffix = CM_NULLPTR;