mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Genex: Add $<LINK_LIBRARY:...>
This generator expression offers the capability, for the link step, to decorate libraries with prefix/suffix flags and/or adding any specific flag for each library. Fixes: #22812, #18751, #20078, #22703
This commit is contained in:
@@ -75,14 +75,8 @@ void cmLinkLineComputer::ComputeLinkLibs(
|
||||
|
||||
BT<std::string> linkLib;
|
||||
if (item.IsPath == cmComputeLinkInformation::ItemIsPath::Yes) {
|
||||
if (item.IsObject == cmComputeLinkInformation::ItemIsObject::Yes) {
|
||||
linkLib.Value += cli.GetObjLinkFileFlag();
|
||||
} else {
|
||||
linkLib.Value += cli.GetLibLinkFileFlag();
|
||||
}
|
||||
linkLib.Value += this->ConvertToOutputFormat(
|
||||
this->ConvertToLinkReference(item.Value.Value));
|
||||
linkLib.Backtrace = item.Value.Backtrace;
|
||||
linkLib = item.GetFormattedItem(this->ConvertToOutputFormat(
|
||||
this->ConvertToLinkReference(item.Value.Value)));
|
||||
} else {
|
||||
linkLib = item.Value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user