summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.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/cmNinjaNormalTargetGenerator.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/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 4dd6a9b..7cce45b 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -172,6 +172,10 @@ cmNinjaNormalTargetGenerator
i != linkCmds.end();
++i)
{
+#ifdef _WIN32
+ // HACK: no TARGET_IMPLIB here???
+ cmSystemTools::ReplaceString(*i, "/implib:", "");
+#endif
this->GetLocalGenerator()->ExpandRuleVariables(*i, vars);
}
linkCmds.insert(linkCmds.begin(), "$PRE_LINK");