Merge topic 'fbuild_fix_superfluous_dirs'

2a5855f034 FASTBuild: fix superfluous directory creation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11379
This commit is contained in:
Brad King
2025-11-04 15:46:51 +00:00
committed by Kitware Robot

View File

@@ -823,9 +823,10 @@ void cmFastbuildNormalTargetGenerator::ComputePaths(
(needTrailingSlash ? "\\ " : ""));
}
}
std::string impLibFile = ConvertToFastbuildPath(
GeneratorTarget->GetFullPath(Config, cmStateEnums::ImportLibraryArtifact));
cmSystemTools::MakeDirectory(cmSystemTools::GetFilenamePath(impLibFile));
std::string const impLibFullPath =
GeneratorTarget->GetFullPath(Config, cmStateEnums::ImportLibraryArtifact);
std::string impLibFile = ConvertToFastbuildPath(impLibFullPath);
cmSystemTools::MakeDirectory(cmSystemTools::GetFilenamePath(impLibFullPath));
if (!impLibFile.empty()) {
cmSystemTools::ConvertToOutputSlashes(impLibFile);
target.Variables["TargetOutputImplib"] = std::move(impLibFile);