CMAKE_FIND_PACKAGE_TARGETS_GLOBAL

Added in version 3.24.

Setting to TRUE promotes all IMPORTED targets discovered 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–2024 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_PACKAGE_TARGETS_GLOBAL.html