summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2007-08-01 17:04:45 (GMT)
committerDavid Cole <david.cole@kitware.com>2007-08-01 17:04:45 (GMT)
commitee91e2549921075b02f0a88fb48323b1c015228c (patch)
treee4189d3f1043bfc292981ceff2e7bf00bbf548ea /Source/cmMakefileLibraryTargetGenerator.cxx
parenta0533be267e0304b3a13f17c3adc660e8a830f71 (diff)
downloadCMake-ee91e2549921075b02f0a88fb48323b1c015228c.zip
CMake-ee91e2549921075b02f0a88fb48323b1c015228c.tar.gz
CMake-ee91e2549921075b02f0a88fb48323b1c015228c.tar.bz2
BUG: Only pay attention to the FRAMEWORK target property for SHARED library targets
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 9ec7f98..2025f25 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -112,7 +112,7 @@ void cmMakefileLibraryTargetGenerator::WriteStaticLibraryRules()
void cmMakefileLibraryTargetGenerator::WriteSharedLibraryRules(bool relink)
{
#ifdef __APPLE__
- if(this->Target->GetPropertyAsBool("FRAMEWORK"))
+ if (this->Target->GetPropertyAsBool("FRAMEWORK"))
{
this->WriteFrameworkRules(relink);
return;
@@ -505,7 +505,8 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
}
#if defined(__APPLE__)
// If we're creating a framework, place the output into a framework directory
- if(this->Target->GetPropertyAsBool("FRAMEWORK"))
+ if (this->Target->GetType() == cmTarget::SHARED_LIBRARY &&
+ this->Target->GetPropertyAsBool("FRAMEWORK"))
{
this->CreateFramework(targetName, outpath);
}