diff options
author | David Cole <david.cole@kitware.com> | 2007-08-01 17:04:45 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2007-08-01 17:04:45 (GMT) |
commit | ee91e2549921075b02f0a88fb48323b1c015228c (patch) | |
tree | e4189d3f1043bfc292981ceff2e7bf00bbf548ea /Source/cmMakefileLibraryTargetGenerator.cxx | |
parent | a0533be267e0304b3a13f17c3adc660e8a830f71 (diff) | |
download | CMake-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.cxx | 5 |
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); } |