mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
Genex: Update $<TARGET_FILE_BASE_NAME:...>: take care of POSTFIX
This capability complement MR !3190 and !3207 and is also needed to solve issue #18771.
This commit is contained in:
@@ -2202,7 +2202,8 @@ struct TargetOutputNameArtifactResultGetter<ArtifactNameTag>
|
||||
const GeneratorExpressionContent* /*unused*/)
|
||||
{
|
||||
return target->GetOutputName(context->Config,
|
||||
cmStateEnums::RuntimeBinaryArtifact);
|
||||
cmStateEnums::RuntimeBinaryArtifact) +
|
||||
target->GetFilePostfix(context->Config);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2224,7 +2225,8 @@ struct TargetOutputNameArtifactResultGetter<ArtifactLinkerTag>
|
||||
target->HasImportLibrary(context->Config)
|
||||
? cmStateEnums::ImportLibraryArtifact
|
||||
: cmStateEnums::RuntimeBinaryArtifact;
|
||||
return target->GetOutputName(context->Config, artifact);
|
||||
return target->GetOutputName(context->Config, artifact) +
|
||||
target->GetFilePostfix(context->Config);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2264,7 +2266,8 @@ struct TargetOutputNameArtifactResultGetter<ArtifactPdbTag>
|
||||
return std::string();
|
||||
}
|
||||
|
||||
return target->GetPDBOutputName(context->Config);
|
||||
return target->GetPDBOutputName(context->Config) +
|
||||
target->GetFilePostfix(context->Config);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user