summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-30 18:17:00 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-30 19:30:43 (GMT)
commit6a2f8335638605d34f066f4e1f2fc646e324564e (patch)
tree9fa6e8991d5cdcd4d1d0678b23294e6f335d3473 /Source/cmGlobalNinjaGenerator.cxx
parent781eb380f47c743ddb9f3ad65c6f7d3eda7af171 (diff)
downloadCMake-6a2f8335638605d34f066f4e1f2fc646e324564e.zip
CMake-6a2f8335638605d34f066f4e1f2fc646e324564e.tar.gz
CMake-6a2f8335638605d34f066f4e1f2fc646e324564e.tar.bz2
Ninja: Fix escaping of path to depfile
Replace the dedicated and non-portable escaping code with use of our standard escaping logic.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index e1e165c..39f5d8f 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -146,13 +146,6 @@ std::string cmGlobalNinjaGenerator::EncodePath(const std::string& path)
return EncodeLiteral(result);
}
-std::string cmGlobalNinjaGenerator::EncodeDepfileSpace(const std::string& path)
-{
- std::string result = path;
- cmSystemTools::ReplaceString(result, " ", "\\ ");
- return result;
-}
-
void cmGlobalNinjaGenerator::WriteBuild(
std::ostream& os, const std::string& comment, const std::string& rule,
const cmNinjaDeps& outputs, const cmNinjaDeps& implicitOuts,