summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-12 11:52:32 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-12 11:52:32 (GMT)
commit5590625fa3d3e6261cc5c9e39e02a205b1ed8027 (patch)
tree48eb6c4a5fa7f659a71f8c30aa8965f2e8781c9b /Source/cmNinjaTargetGenerator.cxx
parent38aa9e97f275e5a8a4054b58bd4f004fea8c1675 (diff)
downloadCMake-5590625fa3d3e6261cc5c9e39e02a205b1ed8027.zip
CMake-5590625fa3d3e6261cc5c9e39e02a205b1ed8027.tar.gz
CMake-5590625fa3d3e6261cc5c9e39e02a205b1ed8027.tar.bz2
Ninja: use slashes for include dirs, so also slahes are in the .d files
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 0e859b3..5c6a45d 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -154,6 +154,8 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile *source,
language.c_str());
std::string includeFlags =
this->LocalGenerator->GetIncludeFlags(includes, language.c_str(), false);
+ if(cmGlobalNinjaGenerator::IsMinGW())
+ cmSystemTools::ReplaceString(includeFlags, "\\", "/");
this->LocalGenerator->AppendFlags(flags, includeFlags.c_str());
}