summaryrefslogtreecommitdiff
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorThomas Herz <thomas.herz@kuka.com>2015-05-07 00:45:01 +0200
committerBrad King <brad.king@kitware.com>2015-05-07 14:07:20 -0400
commitb3de0dfe93af769ee7420cd1380395d656b4dac9 (patch)
treef00d6b329039893f39d09775c2d73a8bc5cab3b7 /Source/cmNinjaTargetGenerator.cxx
parent378c2a0e860f32e0435844d7d6af79a4fdc2b455 (diff)
downloadcmake-b3de0dfe93af769ee7420cd1380395d656b4dac9.tar.gz
Ninja: Use forward slashes for any GCC on Windows (#15439)
Any GCC compiler on a Windows host needs forward slashes, not just those built for MinGW.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index a3c9be6590..128a35be93 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -175,7 +175,7 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile const* source,
// needed by cmcldeps
false,
this->GetConfigName());
- if (this->GetGlobalGenerator()->IsMinGW())
+ if (this->GetGlobalGenerator()->IsGCCOnWindows())
cmSystemTools::ReplaceString(includeFlags, "\\", "/");
this->LocalGenerator->AppendFlags(languageFlags, includeFlags);