summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-24 19:02:21 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-08-01 14:06:02 (GMT)
commite166bbef7bd8fa59c427911d96f41cd8a305af75 (patch)
tree340561c09efcf7c7f26628837b7ca15f7334d539 /Source/cmExportFileGenerator.cxx
parent17dcd9424aefdfa10b72ad3d3bfe35e186cad02b (diff)
downloadCMake-e166bbef7bd8fa59c427911d96f41cd8a305af75.zip
CMake-e166bbef7bd8fa59c427911d96f41cd8a305af75.tar.gz
CMake-e166bbef7bd8fa59c427911d96f41cd8a305af75.tar.bz2
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.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r--Source/cmExportFileGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index 481c98f..41234f4 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -536,7 +536,7 @@ static void getCompatibleInterfaceProperties(
const cmComputeLinkInformation::ItemVector& deps = info->GetItems();
for (auto const& dep : deps) {
- if (!dep.Target) {
+ if (!dep.Target || dep.Target->GetType() == cmStateEnums::OBJECT_LIBRARY) {
continue;
}
getPropertyContents(dep.Target, "COMPATIBLE_INTERFACE_BOOL",