summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-02-18 07:07:11 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-02-18 07:15:23 (GMT)
commit7fb2bb3e8b0dc7bc718aadc4ab9a74cb7fdb656e (patch)
treed96a23ef8d6a46a7e291a596875d5d9452a78ab5 /Source/cmLocalNinjaGenerator.cxx
parent5d19e8aa6aac75fb08897aece8aa5545360aeeb2 (diff)
downloadCMake-7fb2bb3e8b0dc7bc718aadc4ab9a74cb7fdb656e.zip
CMake-7fb2bb3e8b0dc7bc718aadc4ab9a74cb7fdb656e.tar.gz
CMake-7fb2bb3e8b0dc7bc718aadc4ab9a74cb7fdb656e.tar.bz2
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 a4e66e4..cf0e36a 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