Help: Add missing version directive for find_package() GLOBAL keyword

This commit is contained in:
Craig Scott 2022-06-10 18:08:36 +10:00
parent 868218ea28
commit 1305bade56

View File

@ -140,10 +140,11 @@ available components.
ignored on all other ones. Formally, it is up to the target package how to ignored on all other ones. Formally, it is up to the target package how to
interpret the registry view information given to it. interpret the registry view information given to it.
Specifying the ``GLOBAL`` keyword will promote all imported targets to .. versionadded:: 3.24
a global scope in the importing project. Alternatively this functionality Specifying the ``GLOBAL`` keyword will promote all imported targets to
can be enabled by setting the variable a global scope in the importing project. Alternatively, this functionality
:variable:`CMAKE_FIND_PACKAGE_TARGETS_GLOBAL` can be enabled by setting the :variable:`CMAKE_FIND_PACKAGE_TARGETS_GLOBAL`
variable.
.. _FIND_PACKAGE_VERSION_FORMAT: .. _FIND_PACKAGE_VERSION_FORMAT: