mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'install-object-names-build-short'
b2ebfd7709shortobj: properly force long names when computing long names1980e47192Tests/IntermediateDirStrategy: test install paths when using SHORT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11201
This commit is contained in:
@@ -4507,7 +4507,7 @@ std::string cmLocalGenerator::GetObjectFileNameWithoutTarget(
|
||||
}
|
||||
|
||||
// Strip source file extension when shortening object file paths
|
||||
if (this->UseShortObjectNames()) {
|
||||
if (useShortObjectNames) {
|
||||
objectName = cmSystemTools::GetFilenameWithoutExtension(objectName);
|
||||
}
|
||||
// Store the new extension.
|
||||
|
||||
@@ -99,8 +99,9 @@ void cmLocalVisualStudioGenerator::ComputeObjectFilenames(
|
||||
if (counts[cmSystemTools::LowerCase(longObjectName)] > 1) {
|
||||
const_cast<cmGeneratorTarget*>(gt)->AddExplicitObjectName(sf);
|
||||
bool keptSourceExtension;
|
||||
bool forceShortObjectName = false;
|
||||
longObjectName = this->GetObjectFileNameWithoutTarget(
|
||||
*sf, dir_max, &keptSourceExtension, custom_ext);
|
||||
*sf, dir_max, &keptSourceExtension, custom_ext, &forceShortObjectName);
|
||||
}
|
||||
si.second.ShortLoc.emplace(shortObjectName);
|
||||
si.second.LongLoc.Update(longObjectName);
|
||||
|
||||
Reference in New Issue
Block a user