On this page
CMAKE_FIND_PACKAGE_TARGETS_GLOBAL
New in version 3.24.
Setting to TRUE promotes all IMPORTED targets discoverd by find_package() to a GLOBAL scope.
Setting this to TRUE is akin to specifying GLOBAL as an argument to find_package(). Default value is OFF.
© 2000–2022 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.25/variable/CMAKE_FIND_PACKAGE_TARGETS_GLOBAL.html