summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-14 04:37:20 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-14 04:37:20 (GMT)
commita79b16a67f565387b72b01f906e120368daaf489 (patch)
tree6b97db35429fe618066c028b913767a70c86b0b1 /Source/cmLocalUnixMakefileGenerator.cxx
parentb7b32566d21aab567d9e53c72c9f705fa553059d (diff)
downloadCMake-a79b16a67f565387b72b01f906e120368daaf489.zip
CMake-a79b16a67f565387b72b01f906e120368daaf489.tar.gz
CMake-a79b16a67f565387b72b01f906e120368daaf489.tar.bz2
reorder tWR so that it does not crash with shared
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 3c7eca1..fdb2234 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -2223,11 +2223,6 @@ OutputBuildObjectFromSource(std::ostream& fout,
}
case cmSystemTools::CXX_FILE_FORMAT:
{
- if(cmSystemTools::IsOn(m_Makefile->GetDefinition("BUILD_SHARED_LIBS")))
- {
- flags += this->GetSafeDefinition("CMAKE_SHARED_BUILD_CXX_FLAGS");
- flags += " ";
- }
rules.push_back(m_Makefile->GetDefinition("CMAKE_CXX_COMPILE_OBJECT"));
flags += this->GetSafeDefinition("CMAKE_CXX_FLAGS");
flags += " ";
@@ -2243,6 +2238,11 @@ OutputBuildObjectFromSource(std::ostream& fout,
flags += this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_CXX_FLAGS");
flags += " ";
}
+ if(cmSystemTools::IsOn(m_Makefile->GetDefinition("BUILD_SHARED_LIBS")))
+ {
+ flags += this->GetSafeDefinition("CMAKE_SHARED_BUILD_CXX_FLAGS");
+ flags += " ";
+ }
break;
}
case cmSystemTools::HEADER_FILE_FORMAT: