瀏覽代碼

ENH: make sure CMAKE_STANDARD_LIBRARIES are used

Bill Hoffman 19 年之前
父節點
當前提交
2cb68f6000
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmLocalVisualStudio7Generator.cxx

+ 3 - 1
Source/cmLocalVisualStudio7Generator.cxx

@@ -789,7 +789,9 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
     // 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=\"$(NOINHERIT) ";
+         << "\t\t\t\tAdditionalDependencies=\"$(NOINHERIT) "
+         << m_Makefile->GetRequiredDefinition("CMAKE_STANDARD_LIBRARIES") 
+         << " ";
     this->OutputLibraries(fout, linkLibs);
     fout << "\"\n";
     temp = m_LibraryOutputPath;