BUG: Use NOINHERIT macro to avoid linking to project default libraries which may not exist.
This commit is contained in:
parent
60cd72d01c
commit
5288d61ede
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue