diff options
author | Brad King <brad.king@kitware.com> | 2021-05-20 18:36:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-25 14:48:25 (GMT) |
commit | 18408c0b88423a40d239705eb28b65b481cf0973 (patch) | |
tree | 4b0aa8c88cf954f0853af9d35f950169bb9c9180 /Source/cmGlobalNinjaGenerator.cxx | |
parent | efb8d7b4a1d82f2ce4bb01f200367679a6dc46c4 (diff) | |
download | CMake-18408c0b88423a40d239705eb28b65b481cf0973.zip CMake-18408c0b88423a40d239705eb28b65b481cf0973.tar.gz CMake-18408c0b88423a40d239705eb28b65b481cf0973.tar.bz2 |
cmGlobalNinjaGenerator: Add helper to compute absolute paths for build.ninja
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 6034434..09cbaec 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -1160,6 +1160,15 @@ std::string const& cmGlobalNinjaGenerator::ConvertToNinjaPath( .first->second; } +std::string cmGlobalNinjaGenerator::ConvertToNinjaAbsPath( + std::string path) const +{ +#ifdef _WIN32 + std::replace(path.begin(), path.end(), '/', '\\'); +#endif + return path; +} + void cmGlobalNinjaGenerator::AddAdditionalCleanFile(std::string fileName, const std::string& config) { |