diff options
author | Brad King <brad.king@kitware.com> | 2016-10-28 19:39:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-28 19:44:04 (GMT) |
commit | 353f6362baffbcc8750b9ff9649552bf9d555a63 (patch) | |
tree | 6189f825c66d6950d781813a8f8e41fef857eb87 /Source/cmGlobalNinjaGenerator.cxx | |
parent | ee0f2d23fcf3cd7a67ad8d7bd132a475ed78405f (diff) | |
download | CMake-353f6362baffbcc8750b9ff9649552bf9d555a63.zip CMake-353f6362baffbcc8750b9ff9649552bf9d555a63.tar.gz CMake-353f6362baffbcc8750b9ff9649552bf9d555a63.tar.bz2 |
Ninja: Fix POST_BUILD noop on Windows
Use `cd .` instead of `:` in a Windows shell.
Closes: #16393
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index ee594b0..830ab7f 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -34,6 +34,11 @@ const char* cmGlobalNinjaGenerator::NINJA_BUILD_FILE = "build.ninja"; const char* cmGlobalNinjaGenerator::NINJA_RULES_FILE = "rules.ninja"; const char* cmGlobalNinjaGenerator::INDENT = " "; +#ifdef _WIN32 +std::string const cmGlobalNinjaGenerator::SHELL_NOOP = "cd ."; +#else +std::string const cmGlobalNinjaGenerator::SHELL_NOOP = ":"; +#endif void cmGlobalNinjaGenerator::Indent(std::ostream& os, int count) { |