summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorThomas Herz <thomas.herz@kuka.com>2015-05-08 13:38:04 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-08 15:20:10 (GMT)
commitca658a456f80febe05e57bfae8448c8646960ddf (patch)
tree0c1779b1ee543e8dac61561eab950621d54503dc /Source
parent20560e8dca47d7ff80d1a2d9b4e0cf952fa1a790 (diff)
downloadCMake-ca658a456f80febe05e57bfae8448c8646960ddf.zip
CMake-ca658a456f80febe05e57bfae8448c8646960ddf.tar.gz
CMake-ca658a456f80febe05e57bfae8448c8646960ddf.tar.bz2
Ninja: Use forward slashes for linking with any GCC on Windows (#15439)
Fix a condition forgotten by commit b3de0dfe (Ninja: Use forward slashes for any GCC on Windows, 2015-05-07).
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 4c51d23..771ecc4 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -565,7 +565,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
vars["TARGET_PDB"] = base + suffix + dbg_suffix;
}
- if (mf->IsOn("CMAKE_COMPILER_IS_MINGW"))
+ if (this->GetGlobalGenerator()->IsGCCOnWindows())
{
const std::string objPath = GetTarget()->GetSupportDirectory();
vars["OBJECT_DIR"] = ConvertToNinjaPath(objPath);