summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-18 21:59:23 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-19 12:17:39 (GMT)
commit5650ba1d6af4256b8c4ff6428b57a280e7bf552e (patch)
treece1392ece20034fc3aed82930a9e18aa07945645 /Source/cmLocalNinjaGenerator.cxx
parent67752aece33ca0643a354ce0f2037afc66d15bfc (diff)
downloadCMake-5650ba1d6af4256b8c4ff6428b57a280e7bf552e.zip
CMake-5650ba1d6af4256b8c4ff6428b57a280e7bf552e.tar.gz
CMake-5650ba1d6af4256b8c4ff6428b57a280e7bf552e.tar.bz2
Ninja: Drop unnecessary ident encoding logic for paths
The only uses of `EncodeIdent` are surrounding `EncodePath`, but the special ident encoding is not needed for path contexts in a ninja build manifest.
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index c714299..b5ae939 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -251,8 +251,7 @@ void cmLocalNinjaGenerator::WriteNinjaFilesInclusion(std::ostream& os)
cmGlobalNinjaGenerator* ng = this->GetGlobalNinjaGenerator();
std::string const ninjaRulesFile =
ng->NinjaOutputPath(cmGlobalNinjaGenerator::NINJA_RULES_FILE);
- std::string const rulesFilePath =
- ng->EncodeIdent(ng->EncodePath(ninjaRulesFile), os);
+ std::string const rulesFilePath = ng->EncodePath(ninjaRulesFile);
cmGlobalNinjaGenerator::WriteInclude(os, rulesFilePath,
"Include rules file.");
os << "\n";