summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.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/cmGeneratorTarget.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/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 3be3697..8f1818d 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -5858,7 +5858,7 @@ void cmGeneratorTarget::CheckPropertyCompatibility(
static const std::string strNumMax = "COMPATIBLE_INTERFACE_NUMBER_MAX";
for (auto const& dep : deps) {
- if (!dep.Target) {
+ if (!dep.Target || dep.Target->GetType() == cmStateEnums::OBJECT_LIBRARY) {
continue;
}