diff options
author | Brad King <brad.king@kitware.com> | 2012-06-06 19:14:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-06-12 19:40:24 (GMT) |
commit | 94de98290230e010a28fcbf36c0f691b564fbc5c (patch) | |
tree | ac8a028499e5e09e6d3ad6b70325fb02c0881625 /Source/cmNinjaTargetGenerator.cxx | |
parent | eb53bc27733e5762906eb251184df317f1c4664d (diff) | |
download | CMake-94de98290230e010a28fcbf36c0f691b564fbc5c.zip CMake-94de98290230e010a28fcbf36c0f691b564fbc5c.tar.gz CMake-94de98290230e010a28fcbf36c0f691b564fbc5c.tar.bz2 |
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.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index e419a4d..32b8f93 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -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, |