diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-02-19 03:07:09 (GMT) |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-02-19 05:57:22 (GMT) |
commit | 0643fee2fe92b7dccc4e63be7329f6da96f2e61f (patch) | |
tree | 7a3cc3909a3862fcb33dd5d37be81c83510da46a /Source/cmGlobalNinjaGenerator.cxx | |
parent | 43b1d8bad0cf78148e4d6e7b4013850731d5a824 (diff) | |
download | CMake-0643fee2fe92b7dccc4e63be7329f6da96f2e61f.zip CMake-0643fee2fe92b7dccc4e63be7329f6da96f2e61f.tar.gz CMake-0643fee2fe92b7dccc4e63be7329f6da96f2e61f.tar.bz2 |
Ninja: Shell encode various CMake invocations
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index b1d8e5b..7c1529b 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -743,12 +743,19 @@ void cmGlobalNinjaGenerator::WriteTargetAll(std::ostream& os) void cmGlobalNinjaGenerator::WriteTargetRebuildManifest(std::ostream& os) { - cmMakefile* mfRoot = this->LocalGenerators[0]->GetMakefile(); + cmLocalGenerator *lg = this->LocalGenerators[0]; + cmMakefile* mfRoot = lg->GetMakefile(); std::ostringstream cmd; - cmd << mfRoot->GetRequiredDefinition("CMAKE_COMMAND") - << " -H" << mfRoot->GetHomeDirectory() - << " -B" << mfRoot->GetHomeOutputDirectory(); + cmd << lg->ConvertToOutputFormat( + mfRoot->GetRequiredDefinition("CMAKE_COMMAND"), + cmLocalGenerator::SHELL) + << " -H" + << lg->ConvertToOutputFormat(mfRoot->GetHomeDirectory(), + cmLocalGenerator::SHELL) + << " -B" + << lg->ConvertToOutputFormat(mfRoot->GetHomeOutputDirectory(), + cmLocalGenerator::SHELL); WriteRule(*this->RulesFileStream, "RERUN_CMAKE", cmd.str(), |