diff options
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 1ca187d..c4b6e34 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1790,7 +1790,8 @@ void cmTarget::NormalGetFullNameInternal(TargetType type, } #if defined(__APPLE__) // frameworks do not have a prefix or a suffix - if(this->GetPropertyAsBool("FRAMEWORK")) + if (this->GetType() == cmTarget::SHARED_LIBRARY && + this->GetPropertyAsBool("FRAMEWORK")) { targetPrefix = 0; targetSuffix = 0; @@ -2322,7 +2323,8 @@ const char* cmTarget::GetOutputDir(bool implib) #if defined(__APPLE__) // frameworks do not have a prefix or a suffix - if(this->GetPropertyAsBool("FRAMEWORK")) + if (this->GetType() == cmTarget::SHARED_LIBRARY && + this->GetPropertyAsBool("FRAMEWORK")) { out += "/"; out += this->GetFullName(0, implib); |