summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-05-05 14:23:25 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-05-05 14:23:25 (GMT)
commit25f9b28e289ddc7535b2de085912dd581498f89b (patch)
tree6ec6e8cf2f28238a673d8c7b4b4d717a510ca785 /Source/cmLocalVisualStudio6Generator.cxx
parent961fb560297dde42286c7e9afaaa709ad1a464ae (diff)
downloadCMake-25f9b28e289ddc7535b2de085912dd581498f89b.zip
CMake-25f9b28e289ddc7535b2de085912dd581498f89b.tar.gz
CMake-25f9b28e289ddc7535b2de085912dd581498f89b.tar.bz2
BUG: add linker flags for modules
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio6Generator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx
index ba05476..5355e3a 100644
--- a/Source/cmLocalVisualStudio6Generator.cxx
+++ b/Source/cmLocalVisualStudio6Generator.cxx
@@ -809,6 +809,10 @@ void cmLocalVisualStudio6Generator::WriteDSPHeader(std::ostream& fout, const cha
{
extraLinkOptions = m_Makefile->GetDefinition("CMAKE_SHARED_LINKER_FLAGS");
}
+ if(target.GetType() == cmTarget::MODULE_LIBRARY)
+ {
+ extraLinkOptions = m_Makefile->GetDefinition("CMAKE_MODULE_LINKER_FLAGS");
+ }
if(extraLinkOptions.size())
{
@@ -853,6 +857,7 @@ void cmLocalVisualStudio6Generator::WriteDSPHeader(std::ostream& fout, const cha
customRuleCode.c_str());
cmSystemTools::ReplaceString(line, "CMAKE_MFC_FLAG",
mfcFlag);
+
cmSystemTools::ReplaceString(line, "CM_LIBRARIES",
libOptions.c_str());
cmSystemTools::ReplaceString(line, "CM_DEBUG_LIBRARIES",