From 8b6fc81fc3f48ff8a14e0af887ff5c5329c5fd26 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 16 Feb 2024 16:33:52 -0500 Subject: 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 --- Source/cmTarget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`. -- cgit v0.12