mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
Ninja: Fix creation of Windows import library directory
Call `EnsureParentDirectoryExists` with our internal representation of the path, not the representation quoted/encoded for Ninja. Fixes: #22841
This commit is contained in:
1 parent
bd36735f65
commit
73b84db62d
1 file changed
+2
-2
@@ -902,7 +902,7 @@ void cmNinjaNormalTargetGenerator::WriteNvidiaDeviceLinkStatement(
|
||||
const std::string impLibPath = localGen.ConvertToOutputFormat(
|
||||
targetOutputImplib, cmOutputConverter::SHELL);
|
||||
vars["TARGET_IMPLIB"] = impLibPath;
|
||||
this->EnsureParentDirectoryExists(impLibPath);
|
||||
this->EnsureParentDirectoryExists(targetOutputImplib);
|
||||
}
|
||||
|
||||
const std::string objPath =
|
||||
@@ -1211,7 +1211,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement(
|
||||
const std::string impLibPath = localGen.ConvertToOutputFormat(
|
||||
targetOutputImplib, cmOutputConverter::SHELL);
|
||||
vars["TARGET_IMPLIB"] = impLibPath;
|
||||
this->EnsureParentDirectoryExists(impLibPath);
|
||||
this->EnsureParentDirectoryExists(targetOutputImplib);
|
||||
if (gt->HasImportLibrary(config)) {
|
||||
// Some linkers may update a binary without touching its import lib.
|
||||
byproducts.ExplicitOuts.emplace_back(targetOutputImplib);
|
||||
|
||||
Reference in new issue
Block a user