summaryrefslogtreecommitdiff
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-02-18 08:07:11 +0100
committerPeter Kuemmel <syntheticpp@gmx.net>2012-02-18 08:15:23 +0100
commit7fb2bb3e8b0dc7bc718aadc4ab9a74cb7fdb656e (patch)
treed96a23ef8d6a46a7e291a596875d5d9452a78ab5 /Source/cmLocalNinjaGenerator.cxx
parent5d19e8aa6aac75fb08897aece8aa5545360aeeb2 (diff)
downloadcmake-7fb2bb3e8b0dc7bc718aadc4ab9a74cb7fdb656e.tar.gz
Ninja: win fixes: escape back slash/colon, use cd. as cmd.exe nop
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index a4e66e49d8..cf0e36a4dd 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -294,7 +294,11 @@ std::string cmLocalNinjaGenerator::BuildCommandLine(
// This happens when building a POST_BUILD value for link targets that
// don't use POST_BUILD.
if (cmdLines.empty())
+#ifdef _WIN32
+ return "cd.";
+#else
return ":";
+#endif
// TODO: This will work only on Unix platforms. I don't
// want to use a link.txt file because I will lose the benefit of the