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).
This commit is contained in:
parent
20560e8dca
commit
ca658a456f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue