summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2014-10-06 20:29:09 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2014-10-06 20:29:09 (GMT)
commit71da30cae09d56a81fe43b8c65b9dfeea1d7dd06 (patch)
treead3958ab008022193c35a5a03c65051c88d04f69 /Source/cmGlobalNinjaGenerator.cxx
parent3f9191932262f2279a7d25bf0dbb2fc224bd27cb (diff)
downloadCMake-71da30cae09d56a81fe43b8c65b9dfeea1d7dd06.zip
CMake-71da30cae09d56a81fe43b8c65b9dfeea1d7dd06.tar.gz
CMake-71da30cae09d56a81fe43b8c65b9dfeea1d7dd06.tar.bz2
Ninja: Fix variable duplication in RSP rules
Stream clear() resets stream state but does not actually clear its content.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 543ecdb..f391203 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -205,7 +205,7 @@ void cmGlobalNinjaGenerator::WriteBuild(std::ostream& os,
&& args.size() + buildstr.size() + assignments.size()
> (size_t) cmdLineLimit) {
buildstr += "_RSP_FILE";
- variable_assignments.clear();
+ variable_assignments.str(std::string());
cmGlobalNinjaGenerator::WriteVariable(variable_assignments,
"RSP_FILE", rspfile, "", 1);
assignments += variable_assignments.str();