Ninja: Fix OBJECT_DIR placeholder substitution in link rules
Convert the OBJECT_DIR value to the shell output format so that it is properly quoted when the path contains spaces.
This commit is contained in:
parent
02f95f9b7c
commit
993d064197
|
@ -583,7 +583,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string objPath = GetTarget()->GetSupportDirectory();
|
const std::string objPath = GetTarget()->GetSupportDirectory();
|
||||||
vars["OBJECT_DIR"] = ConvertToNinjaPath(objPath);
|
vars["OBJECT_DIR"] =
|
||||||
|
this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||||
|
this->ConvertToNinjaPath(objPath), cmLocalGenerator::SHELL);
|
||||||
EnsureDirectoryExists(objPath);
|
EnsureDirectoryExists(objPath);
|
||||||
|
|
||||||
if (this->GetGlobalGenerator()->IsGCCOnWindows())
|
if (this->GetGlobalGenerator()->IsGCCOnWindows())
|
||||||
|
|
Loading…
Reference in New Issue