summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-15 21:38:57 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-15 21:38:57 (GMT)
commit5288d61ede70fbe0944b1eff22eff11ae4f10a1a (patch)
treef8ead10e9e2c871fa992534ea4b7b3dec70cec33
parent60cd72d01cf8f096a2d78e2ce608040fde14aa5b (diff)
downloadCMake-5288d61ede70fbe0944b1eff22eff11ae4f10a1a.zip
CMake-5288d61ede70fbe0944b1eff22eff11ae4f10a1a.tar.gz
CMake-5288d61ede70fbe0944b1eff22eff11ae4f10a1a.tar.bz2
BUG: Use NOINHERIT macro to avoid linking to project default libraries which may not exist.
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 3fc9593..d05c19e 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -778,8 +778,10 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
fout << " " << cmLocalVisualStudio7Generator::EscapeForXML(
extraLinkOptions.c_str()).c_str();
}
+ // Use the NOINHERIT macro to avoid getting VS project default
+ // libraries which may be set by the user to something bad.
fout << "\"\n"
- << "\t\t\t\tAdditionalDependencies=\"";
+ << "\t\t\t\tAdditionalDependencies=\"$(NOINHERIT) ";
this->OutputLibraries(fout, linkLibs);
fout << "\"\n";
temp = m_LibraryOutputPath;
@@ -846,8 +848,10 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
fout << " " << cmLocalVisualStudio7Generator::EscapeForXML(
extraLinkOptions.c_str()).c_str();
}
+ // Use the NOINHERIT macro to avoid getting VS project default
+ // libraries which may be set by the user to something bad.
fout << "\"\n"
- << "\t\t\t\tAdditionalDependencies=\""
+ << "\t\t\t\tAdditionalDependencies=\"$(NOINHERIT) "
<< m_Makefile->GetRequiredDefinition("CMAKE_STANDARD_LIBRARIES")
<< " ";
this->OutputLibraries(fout, linkLibs);