diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-12 11:52:32 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-12 11:52:32 (GMT) |
commit | 5590625fa3d3e6261cc5c9e39e02a205b1ed8027 (patch) | |
tree | 48eb6c4a5fa7f659a71f8c30aa8965f2e8781c9b /Source/cmNinjaTargetGenerator.cxx | |
parent | 38aa9e97f275e5a8a4054b58bd4f004fea8c1675 (diff) | |
download | CMake-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.cxx | 2 |
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()); } |