mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
cmLocalGenerator: Separate stdlib content from library stream
This commit is contained in:
@@ -1506,8 +1506,12 @@ void cmLocalGenerator::OutputLinkLibraries(
|
||||
std::string standardLibsVar = "CMAKE_";
|
||||
standardLibsVar += cli.GetLinkLanguage();
|
||||
standardLibsVar += "_STANDARD_LIBRARIES";
|
||||
std::string stdLibString;
|
||||
if (const char* stdLibs = this->Makefile->GetDefinition(standardLibsVar)) {
|
||||
fout << stdLibs << " ";
|
||||
stdLibString = stdLibs;
|
||||
}
|
||||
if (!stdLibString.empty()) {
|
||||
fout << stdLibString << " ";
|
||||
}
|
||||
|
||||
linkLibraries = fout.str();
|
||||
|
||||
Reference in New Issue
Block a user