diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index abbf29ec64..fd2d5d1238 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`.