mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 00:00:39 -05:00
Avoid direct use of std::(o|)stringstream (#13272)
Older C++ compilers do not provide a standard std::stringstream. Use our compatibility interfaces instead. Also avoid std::stringstream(openmode) signature. Our approximate stringstream implementation provided when the standard one is not available does not support the openmode argument.
This commit is contained in:
@@ -365,9 +365,9 @@ cmNinjaTargetGenerator
|
||||
this->GetLocalGenerator()->BuildCommandLine(compileCmds);
|
||||
|
||||
// Write the rule for compiling file of the given language.
|
||||
std::ostringstream comment;
|
||||
cmOStringStream comment;
|
||||
comment << "Rule for compiling " << language << " files.";
|
||||
std::ostringstream description;
|
||||
cmOStringStream description;
|
||||
description << "Building " << language << " object $out";
|
||||
this->GetGlobalGenerator()->AddRule(this->LanguageCompilerRule(language),
|
||||
cmdLine,
|
||||
|
||||
Reference in New Issue
Block a user