diff options
author | Brad King <brad.king@kitware.com> | 2015-05-12 13:12:41 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-12 13:12:41 (GMT) |
commit | cca3bbde98de7954ebd3bca1966c92d931fe0dab (patch) | |
tree | 7ee79ab236c4982d25b8b8caa9bc2e05514ba009 /Source | |
parent | 0f2658f62d949137c9b0b9081d1a93e5f39d2bb2 (diff) | |
parent | cf8ce7a39e425aa5ea6a4847f512b8e8628af61a (diff) | |
download | CMake-cca3bbde98de7954ebd3bca1966c92d931fe0dab.zip CMake-cca3bbde98de7954ebd3bca1966c92d931fe0dab.tar.gz CMake-cca3bbde98de7954ebd3bca1966c92d931fe0dab.tar.bz2 |
Merge topic 'ninja-gcc-windows'
cf8ce7a3 RC: Do not override MinGW Makefiles generator preference
ca658a45 Ninja: Use forward slashes for linking with any GCC on Windows (#15439)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 2 |
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); |