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:
Thomas Herz 2015-05-08 15:38:04 +02:00 committed by Brad King
parent 20560e8dca
commit ca658a456f
1 changed files with 1 additions and 1 deletions

View File

@ -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);