summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 40bbdf2..9ab4649 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -111,13 +111,11 @@ void cmMakefileLibraryTargetGenerator::WriteStaticLibraryRules()
//----------------------------------------------------------------------------
void cmMakefileLibraryTargetGenerator::WriteSharedLibraryRules(bool relink)
{
-#ifdef __APPLE__
- if (this->Target->GetPropertyAsBool("FRAMEWORK"))
+ if(this->Target->IsFrameworkOnApple())
{
this->WriteFrameworkRules(relink);
return;
}
-#endif
const char* linkLanguage =
this->Target->GetLinkerLanguage(this->GlobalGenerator);
std::string linkRuleVar = "CMAKE_";
@@ -479,14 +477,13 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
outpathImp += "/";
}
}
-#if defined(__APPLE__)
+
// If we're creating a framework, place the output into a framework directory
- if (this->Target->GetType() == cmTarget::SHARED_LIBRARY &&
- this->Target->GetPropertyAsBool("FRAMEWORK"))
+ if(this->Target->IsFrameworkOnApple())
{
this->CreateFramework(targetName, outpath);
}
-#endif
+
std::string targetFullPath = outpath + targetName;
std::string targetFullPathPDB = outpath + targetNamePDB;
std::string targetFullPathSO = outpath + targetNameSO;