diff options
author | Brad King <brad.king@kitware.com> | 2019-05-22 14:28:42 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-05-22 14:28:59 (GMT) |
commit | c024e44abea66e37fefe358659d70d8811dd73c8 (patch) | |
tree | b1518275fd646b36e2ceebcc9f504d8d9c158096 /Help/command | |
parent | aefd424b6b2f5b630f9a511cfadd6b07228656c1 (diff) | |
parent | 26a99da206526efb203d0e448d7e095a07bec2fd (diff) | |
download | CMake-c024e44abea66e37fefe358659d70d8811dd73c8.zip CMake-c024e44abea66e37fefe358659d70d8811dd73c8.tar.gz CMake-c024e44abea66e37fefe358659d70d8811dd73c8.tar.bz2 |
Merge topic 'find-package-prefer-config'
26a99da206 find_package: Add option to prefer Config mode
c365243a3a find_package: Factor out module and config find_package methods
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
Merge-request: !3339
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/find_package.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/command/find_package.rst b/Help/command/find_package.rst index eb44eb2..e5e5b2c 100644 --- a/Help/command/find_package.rst +++ b/Help/command/find_package.rst @@ -59,6 +59,13 @@ for finding the package, checking the version, and producing any needed messages. Some find-modules provide limited or no support for versioning; check the module documentation. +If the ``MODULE`` option is not specfied in the above signature, +CMake first searches for the package using Module mode. Then, if the +package is not found, it searches again using Config mode. A user +may set the variable :variable:`CMAKE_FIND_PACKAGE_PREFER_CONFIG` to +``TRUE`` to direct CMake first search using Config mode before falling +back to Module mode. + Full Signature and Config Mode ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |