Find: Correct spelling and layout issues in CMAKE_FIND_USE_ docs
This commit is contained in:
parent
06f1560a58
commit
704e3a2ca8
@ -90,7 +90,7 @@ If ``NO_DEFAULT_PATH`` is not specified, the search process is as follows:
|
|||||||
i.e. ``<CurrentPackage>_ROOT``, ``ENV{<CurrentPackage>_ROOT}``,
|
i.e. ``<CurrentPackage>_ROOT``, ``ENV{<CurrentPackage>_ROOT}``,
|
||||||
``<ParentPackage>_ROOT``, ``ENV{<ParentPackage>_ROOT}``, etc.
|
``<ParentPackage>_ROOT``, ``ENV{<ParentPackage>_ROOT}``, etc.
|
||||||
This can be skipped if ``NO_PACKAGE_ROOT_PATH`` is passed or by setting
|
This can be skipped if ``NO_PACKAGE_ROOT_PATH`` is passed or by setting
|
||||||
the :variable:`CMAKE_FIND_USE_PACAKGE_ROOT_PATH` to ``FALSE``.
|
the :variable:`CMAKE_FIND_USE_PACKAGE_ROOT_PATH` to ``FALSE``.
|
||||||
See policy :policy:`CMP0074`.
|
See policy :policy:`CMP0074`.
|
||||||
|
|
||||||
* |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX|
|
* |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX|
|
||||||
|
@ -183,7 +183,7 @@ Variables that Change Behavior
|
|||||||
/variable/CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH
|
/variable/CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH
|
||||||
/variable/CMAKE_FIND_USE_CMAKE_PATH
|
/variable/CMAKE_FIND_USE_CMAKE_PATH
|
||||||
/variable/CMAKE_FIND_USE_CMAKE_SYSTEM_PATH
|
/variable/CMAKE_FIND_USE_CMAKE_SYSTEM_PATH
|
||||||
/variable/CMAKE_FIND_USE_PACAKGE_ROOT_PATH
|
/variable/CMAKE_FIND_USE_PACKAGE_ROOT_PATH
|
||||||
/variable/CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH
|
/variable/CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH
|
||||||
/variable/CMAKE_FRAMEWORK_PATH
|
/variable/CMAKE_FRAMEWORK_PATH
|
||||||
/variable/CMAKE_IGNORE_PATH
|
/variable/CMAKE_IGNORE_PATH
|
||||||
|
@ -4,8 +4,18 @@ global-controls-over-find-locations
|
|||||||
* The :command:`find_file`, :command:`find_library`, :command:`find_path`,
|
* The :command:`find_file`, :command:`find_library`, :command:`find_path`,
|
||||||
and :command:`find_program` commands have learned to check the following
|
and :command:`find_program` commands have learned to check the following
|
||||||
variables to control searching
|
variables to control searching
|
||||||
* :variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH` - Controls the searching the cmake-specific environment variables.
|
|
||||||
* :variable:`CMAKE_FIND_USE_CMAKE_PATH` - Controls the searching the cmake-specific cache variables.
|
* :variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH` - Controls the searching
|
||||||
* :variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH` - Controls the searching cmake platform specific variables.
|
the cmake-specific environment variables.
|
||||||
* :variable:`CMAKE_FIND_USE_PACAKGE_ROOT_PATH` - Controls the searching of :variable:`<PackageName>_ROOT` variables.
|
|
||||||
* :variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH` - Controls the searching the standard system environment variables.
|
* :variable:`CMAKE_FIND_USE_CMAKE_PATH` - Controls the searching the
|
||||||
|
cmake-specific cache variables.
|
||||||
|
|
||||||
|
* :variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH` - Controls the searching
|
||||||
|
cmake platform specific variables.
|
||||||
|
|
||||||
|
* :variable:`CMAKE_FIND_USE_PACKAGE_ROOT_PATH` - Controls the searching of
|
||||||
|
:variable:`<PackageName>_ROOT` variables.
|
||||||
|
|
||||||
|
* :variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH` - Controls the searching
|
||||||
|
the standard system environment variables.
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH
|
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
Controls the searching the cmake-specific environment variables by the :command:`find_program`,
|
Controls the searching the cmake-specific environment variables by the
|
||||||
:command:`find_library`, :command:`find_file`, :command:`find_package`, and :command:`find_path`.
|
:command:`find_program`, :command:`find_library`, :command:`find_file`,
|
||||||
|
and :command:`find_path` commands.
|
||||||
This is useful in cross-compiling environments.
|
This is useful in cross-compiling environments.
|
||||||
|
|
||||||
By default this this is set to ``TRUE``.
|
By default this variable is not set, which is equivalent to it having
|
||||||
|
a value of ``TRUE``. Explicit options given to the :command:`find_program`,
|
||||||
|
:command:`find_library`, :command:`find_file`, and :command:`find_path`
|
||||||
|
commands take precedence over this variable.
|
||||||
|
|
||||||
See also the :variable:`CMAKE_FIND_USE_CMAKE_PATH`, :variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`,
|
See also the :variable:`CMAKE_FIND_USE_CMAKE_PATH`,
|
||||||
:variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH`, and :variable:`CMAKE_FIND_USE_PACAKGE_ROOT_PATH` variables.
|
:variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`,
|
||||||
|
:variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH`,
|
||||||
|
and :variable:`CMAKE_FIND_USE_PACKAGE_ROOT_PATH` variables.
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
CMAKE_FIND_USE_CMAKE_PATH
|
CMAKE_FIND_USE_CMAKE_PATH
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
Controls the searching the cmake-specific cache variables by the :command:`find_program`,
|
Controls the searching the cmake-specific cache variables by the
|
||||||
:command:`find_library`, :command:`find_file`, :command:`find_package`, and :command:`find_path`.
|
:command:`find_program`, :command:`find_library`, :command:`find_file`,
|
||||||
|
and :command:`find_path` commands.
|
||||||
This is useful in cross-compiling environments.
|
This is useful in cross-compiling environments.
|
||||||
|
|
||||||
By default this this is set to ``TRUE``.
|
By default this variable is not set, which is equivalent to it having
|
||||||
|
a value of ``TRUE``. Explicit options given to the :command:`find_program`,
|
||||||
|
:command:`find_library`, :command:`find_file`, and :command:`find_path`
|
||||||
|
commands take precedence over this variable.
|
||||||
|
|
||||||
See also the :variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`, :variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`,
|
See also the :variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`,
|
||||||
:variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH`, and :variable:`CMAKE_FIND_USE_PACAKGE_ROOT_PATH` variables.
|
:variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`,
|
||||||
|
:variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH`,
|
||||||
|
and :variable:`CMAKE_FIND_USE_PACKAGE_ROOT_PATH` variables.
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH
|
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
Controls the searching cmake platform specific variables by the :command:`find_program`,
|
Controls the searching cmake platform specific variables by the
|
||||||
:command:`find_library`, :command:`find_file`, :command:`find_package`, and :command:`find_path`.
|
:command:`find_program`, :command:`find_library`, :command:`find_file`,
|
||||||
|
and :command:`find_path` commands.
|
||||||
This is useful in cross-compiling environments.
|
This is useful in cross-compiling environments.
|
||||||
|
|
||||||
By default this this is set to ``TRUE``.
|
By default this variable is not set, which is equivalent to it having
|
||||||
|
a value of ``TRUE``. Explicit options given to the :command:`find_program`,
|
||||||
|
:command:`find_library`, :command:`find_file`, and :command:`find_path`
|
||||||
|
commands take precedence over this variable.
|
||||||
|
|
||||||
See also the :variable:`CMAKE_FIND_USE_CMAKE_PATH`, :variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`,
|
See also the :variable:`CMAKE_FIND_USE_CMAKE_PATH`,
|
||||||
:variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH`, and :variable:`CMAKE_FIND_USE_PACAKGE_ROOT_PATH` variables.
|
:variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`,
|
||||||
|
:variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH`,
|
||||||
|
and :variable:`CMAKE_FIND_USE_PACKAGE_ROOT_PATH` variables.
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
CMAKE_FIND_USE_PACAKGE_ROOT_PATH
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
Controls the searching of :variable:`<PackageName>_ROOT` variables by the :command:`find_program`,
|
|
||||||
:command:`find_library`, :command:`find_file`, :command:`find_package`, and :command:`find_path`.
|
|
||||||
This is useful in cross-compiling environments.
|
|
||||||
|
|
||||||
By default this this is set to ``TRUE``.
|
|
||||||
|
|
||||||
See also the :variable:`CMAKE_FIND_USE_CMAKE_PATH`, :variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`,
|
|
||||||
:variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`, and :variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH` variables.
|
|
17
Help/variable/CMAKE_FIND_USE_PACKAGE_ROOT_PATH.rst
Normal file
17
Help/variable/CMAKE_FIND_USE_PACKAGE_ROOT_PATH.rst
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
CMAKE_FIND_USE_PACKAGE_ROOT_PATH
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
Controls the searching of :variable:`<PackageName>_ROOT` variables by the
|
||||||
|
:command:`find_program`, :command:`find_library`, :command:`find_file`,
|
||||||
|
and :command:`find_path` commands.
|
||||||
|
This is useful in cross-compiling environments.
|
||||||
|
|
||||||
|
By default this variable is not set, which is equivalent to it having
|
||||||
|
a value of ``TRUE``. Explicit options given to the :command:`find_program`,
|
||||||
|
:command:`find_library`, :command:`find_file`, and :command:`find_path`
|
||||||
|
commands take precedence over this variable.
|
||||||
|
|
||||||
|
See also the :variable:`CMAKE_FIND_USE_CMAKE_PATH`,
|
||||||
|
:variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`,
|
||||||
|
:variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`,
|
||||||
|
and :variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH` variables.
|
@ -1,11 +1,17 @@
|
|||||||
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH
|
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
Controls the searching the standard system environment variables by the :command:`find_program`,
|
Controls the searching the standard system environment variables by the
|
||||||
:command:`find_library`, :command:`find_file`, :command:`find_package`, and :command:`find_path`.
|
:command:`find_program`, :command:`find_library`, :command:`find_file`,
|
||||||
|
and :command:`find_path` commands.
|
||||||
This is useful in cross-compiling environments.
|
This is useful in cross-compiling environments.
|
||||||
|
|
||||||
By default this this is set to ``TRUE``.
|
By default this variable is not set, which is equivalent to it having
|
||||||
|
a value of ``TRUE``. Explicit options given to the :command:`find_program`,
|
||||||
|
:command:`find_library`, :command:`find_file`, and :command:`find_path`
|
||||||
|
commands take precedence over this variable.
|
||||||
|
|
||||||
See also the :variable:`CMAKE_FIND_USE_CMAKE_PATH`, :variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`,
|
See also the :variable:`CMAKE_FIND_USE_CMAKE_PATH`,
|
||||||
:variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`, and :variable:`CMAKE_FIND_USE_PACAKGE_ROOT_PATH` variables.
|
:variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`,
|
||||||
|
:variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`,
|
||||||
|
and :variable:`CMAKE_FIND_USE_PACKAGE_ROOT_PATH` variables.
|
||||||
|
@ -148,7 +148,7 @@ void cmFindCommon::SelectDefaultMacMode()
|
|||||||
void cmFindCommon::SelectDefaultSearchModes()
|
void cmFindCommon::SelectDefaultSearchModes()
|
||||||
{
|
{
|
||||||
const std::array<std::pair<bool&, std::string>, 5> search_paths = {
|
const std::array<std::pair<bool&, std::string>, 5> search_paths = {
|
||||||
{ { this->NoPackageRootPath, "CMAKE_FIND_USE_PACAKGE_ROOT_PATH" },
|
{ { this->NoPackageRootPath, "CMAKE_FIND_USE_PACKAGE_ROOT_PATH" },
|
||||||
{ this->NoCMakePath, "CMAKE_FIND_USE_CMAKE_PATH" },
|
{ this->NoCMakePath, "CMAKE_FIND_USE_CMAKE_PATH" },
|
||||||
{ this->NoCMakeEnvironmentPath,
|
{ this->NoCMakeEnvironmentPath,
|
||||||
"CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH" },
|
"CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH" },
|
||||||
|
@ -46,7 +46,7 @@ set(CMAKE_PREFIX_PATH ".")
|
|||||||
set(CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH OFF)
|
set(CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH OFF)
|
||||||
set(CMAKE_FIND_USE_CMAKE_PATH OFF)
|
set(CMAKE_FIND_USE_CMAKE_PATH OFF)
|
||||||
set(CMAKE_FIND_USE_CMAKE_SYSTEM_PATH OFF)
|
set(CMAKE_FIND_USE_CMAKE_SYSTEM_PATH OFF)
|
||||||
set(CMAKE_FIND_USE_PACAKGE_ROOT_PATH OFF)
|
set(CMAKE_FIND_USE_PACKAGE_ROOT_PATH OFF)
|
||||||
set(CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH OFF)
|
set(CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH OFF)
|
||||||
find_program(PROG_CWD
|
find_program(PROG_CWD
|
||||||
NAMES testCWD
|
NAMES testCWD
|
||||||
|
Loading…
Reference in New Issue
Block a user