mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
cmComputeLinkInformation: prepare Item consumers for OBJECT libraries
After b665966933 (cmComputeLinkInformation: track `OBJECT` library
dependencies, 2023-07-22), introduced in !8645 as a fix for #25112,
`OBJECT` libraries were tracked in a separate member to reduce the risk
of further regressions. This commit prepares consumers to handle
`OBJECT` libraries once they start appearing as link items.
This commit is contained in:
@@ -65,7 +65,8 @@ void cmLinkLineComputer::ComputeLinkLibs(
|
||||
ItemVector const& items = cli.GetItems();
|
||||
for (auto const& item : items) {
|
||||
if (item.Target &&
|
||||
item.Target->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
|
||||
(item.Target->GetType() == cmStateEnums::INTERFACE_LIBRARY ||
|
||||
item.Target->GetType() == cmStateEnums::OBJECT_LIBRARY)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user