From 5288d61ede70fbe0944b1eff22eff11ae4f10a1a Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 15 Feb 2006 16:38:57 -0500 Subject: [PATCH] BUG: Use NOINHERIT macro to avoid linking to project default libraries which may not exist. --- Source/cmLocalVisualStudio7Generator.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 3fc9593a6..d05c19e83 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);