mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
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
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user