summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-02-16 21:33:52 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-19 15:25:29 (GMT)
commit8b6fc81fc3f48ff8a14e0af887ff5c5329c5fd26 (patch)
treebc31e9a5f295123ed19fa78102537e5f96db17be
parentd4a517f82a236c8da0e0dbef976eefa856e137d3 (diff)
downloadCMake-8b6fc81fc3f48ff8a14e0af887ff5c5329c5fd26.zip
CMake-8b6fc81fc3f48ff8a14e0af887ff5c5329c5fd26.tar.gz
CMake-8b6fc81fc3f48ff8a14e0af887ff5c5329c5fd26.tar.bz2
cmTarget: copy link libraries from the right properties
This fixes transitive dependencies' usage requirements not appearing when compiling synthetic targets. See: https://discourse.cmake.org/t/9819
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index abbf29e..fd2d5d1 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1783,7 +1783,7 @@ void cmTarget::CopyImportedCxxModulesEntries(cmTarget const* tgt)
cmMakeRange(tgt->impl->ImportedCxxModulesCompileOptions.Entries));
this->impl->LinkLibraries.Entries.clear();
this->impl->LinkLibraries.CopyFromEntries(
- cmMakeRange(tgt->impl->LinkLibraries.Entries));
+ cmMakeRange(tgt->impl->ImportedCxxModulesLinkLibraries.Entries));
// Copy the C++ module fileset entries from `tgt`'s `INTERFACE` to this
// target's `PRIVATE`.