mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
2f1ffa003c
Allow find package to promote scope of imported targets by specifying
an argument to `find_package` or by specifying a CMake variable.
* Add support for CMAKE_GLOBAL_IMPORT_SCOPE variable
* Add support for GLOBAL argument to find_package
Additionally add testing for above features.
11 lines
320 B
ReStructuredText
11 lines
320 B
ReStructuredText
CMAKE_FIND_PACKAGE_TARGETS_GLOBAL
|
|
---------------------------------
|
|
|
|
Setting to ``TRUE`` promotes all :prop_tgt:`IMPORTED` targets discoverd
|
|
by :command:`find_package` to a ``GLOBAL`` scope.
|
|
|
|
|
|
Setting this to ``TRUE`` is akin to specifying ``GLOBAL``
|
|
as an argument to :command:`find_package`.
|
|
Default value is ``OFF``.
|