mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
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:
1 parent
02f95f9b7c
commit
993d064197
1 file changed
+3
-1
@@ -583,7 +583,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
||||
}
|
||||
|
||||
const std::string objPath = GetTarget()->GetSupportDirectory();
|
||||
vars["OBJECT_DIR"] = ConvertToNinjaPath(objPath);
|
||||
vars["OBJECT_DIR"] =
|
||||
this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||
this->ConvertToNinjaPath(objPath), cmLocalGenerator::SHELL);
|
||||
EnsureDirectoryExists(objPath);
|
||||
|
||||
if (this->GetGlobalGenerator()->IsGCCOnWindows())
|
||||
|
||||
Reference in new issue
Block a user