diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-02-18 07:07:11 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-02-18 07:15:23 (GMT) |
commit | 7fb2bb3e8b0dc7bc718aadc4ab9a74cb7fdb656e (patch) | |
tree | d96a23ef8d6a46a7e291a596875d5d9452a78ab5 /Source/cmLocalNinjaGenerator.cxx | |
parent | 5d19e8aa6aac75fb08897aece8aa5545360aeeb2 (diff) | |
download | CMake-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.cxx | 4 |
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 |