summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-23 20:26:21 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-23 20:26:21 (GMT)
commit71b57bc4541b12bf874028f15e557c053e5b0b72 (patch)
tree3419045422153b93b93042b13eca0f60c12edfc9 /Source
parentaff8c7bcd6fe751974c2e82147d1a29928236209 (diff)
downloadCMake-71b57bc4541b12bf874028f15e557c053e5b0b72.zip
CMake-71b57bc4541b12bf874028f15e557c053e5b0b72.tar.gz
CMake-71b57bc4541b12bf874028f15e557c053e5b0b72.tar.bz2
BUG: fix for bug 769 CMAKE_STANDARD_LIBRARIES now used in ides
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalVisualStudio6Generator.cxx13
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx4
2 files changed, 15 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx
index 544b09c..bc9fe68 100644
--- a/Source/cmLocalVisualStudio6Generator.cxx
+++ b/Source/cmLocalVisualStudio6Generator.cxx
@@ -955,7 +955,18 @@ void cmLocalVisualStudio6Generator::WriteDSPHeader(std::ostream& fout, const cha
libMultiLineOptionsForDebug += extraLinkOptions;
libMultiLineOptionsForDebug += " \n";
}
-
+ if(const char* stdLibs = m_Makefile->GetDefinition("CMAKE_STANDARD_LIBRARIES"))
+ {
+ libOptions += " ";
+ libOptions += stdLibs;
+ libOptions += " ";
+ libMultiLineOptions += "# ADD LINK32 ";
+ libMultiLineOptions += stdLibs;
+ libMultiLineOptions += " \n";
+ libMultiLineOptionsForDebug += "# ADD LINK32 ";
+ libMultiLineOptionsForDebug += stdLibs;
+ libMultiLineOptionsForDebug += " \n";
+ }
if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS"))
{
libOptions += " ";
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 4c9c238..7e526e1 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -617,7 +617,9 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
extraLinkOptions.c_str()).c_str();
}
fout << "\"\n"
- << "\t\t\t\tAdditionalDependencies=\" odbc32.lib odbccp32.lib ";
+ << "\t\t\t\tAdditionalDependencies=\""
+ << m_Makefile->GetDefinition("CMAKE_STANDARD_LIBRARIES")
+ << " ";
this->OutputLibraries(fout, configName, libName, target);
fout << "\"\n";
temp = m_ExecutableOutputPath;