1
0
Эх сурвалжийг харах

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).
Thomas Herz 10 жил өмнө
parent
commit
ca658a456f

+ 1 - 1
Source/cmNinjaNormalTargetGenerator.cxx

@@ -565,7 +565,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
     vars["TARGET_PDB"] = base + suffix + dbg_suffix;
     vars["TARGET_PDB"] = base + suffix + dbg_suffix;
     }
     }
 
 
-  if (mf->IsOn("CMAKE_COMPILER_IS_MINGW"))
+  if (this->GetGlobalGenerator()->IsGCCOnWindows())
     {
     {
     const std::string objPath = GetTarget()->GetSupportDirectory();
     const std::string objPath = GetTarget()->GetSupportDirectory();
     vars["OBJECT_DIR"] = ConvertToNinjaPath(objPath);
     vars["OBJECT_DIR"] = ConvertToNinjaPath(objPath);