CMAKE__LINKER_PREFERENCE_PROPAGATES
From Get docs
Cmake/docs/3.21/variable/cmake lang linker preference propagates
CMAKE__LINKER_PREFERENCE_PROPAGATES
True if CMAKE__LINKER_PREFERENCE propagates across targets.
This is used when CMake selects a linker language for a target. Languages compiled directly into the target are always considered. A language compiled into static libraries linked by the target is considered if this variable is true.
© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_LANG_LINKER_PREFERENCE_PROPAGATES.html