summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-10-27 17:24:42 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-10-27 19:52:01 (GMT)
commit64d9240564c778674e6d4b2a34de88f2cff14a96 (patch)
tree898ed008e28e915252e6502631f81a1d40b4988d
parent035302b7e3143537eaa9668738f4b6759f1e27ad (diff)
downloadCMake-64d9240564c778674e6d4b2a34de88f2cff14a96.zip
CMake-64d9240564c778674e6d4b2a34de88f2cff14a96.tar.gz
CMake-64d9240564c778674e6d4b2a34de88f2cff14a96.tar.bz2
cmComputeLinkInformation: skip over linking to items for object purposes
If a name is only found because it is a link entry of kind `Object`, do not add anything to the link line.
-rw-r--r--Source/cmComputeLinkInformation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 7d3675e..f06e96f 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -1220,7 +1220,7 @@ void cmComputeLinkInformation::AddItem(LinkEntry const& entry)
this->AddFullItem(entry);
this->AddLibraryRuntimeInfo(item.Value);
}
- } else {
+ } else if (entry.Kind != cmComputeLinkDepends::LinkEntry::Object) {
// This is a library or option specified by the user.
this->AddUserItem(entry, true);
}