Commit ff8e321c authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmLocalGenerator: Separate stdlib content from library stream

parent 80f57e67
Pipeline #30058 passed with stage
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment