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:
Marc Chevrier
2019-04-25 18:48:43 +02:00
parent 1f4c9aa7d2
commit 6e5ccabe9b
5 changed files with 100 additions and 8 deletions
+6 -3
View File
@@ -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);
}
};