From 697486583f5b857d53ea922a613b8022b1ce1ae9 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 18 Mar 2026 13:07:14 +0100 Subject: [PATCH] find_package: Clarify CPS search priority When using `find_package()` in config mode, as of CMake 4.3, first the CPS files are searched and then config files. --- Help/command/find_package.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Help/command/find_package.rst b/Help/command/find_package.rst index 24324340b2..d757263e22 100644 --- a/Help/command/find_package.rst +++ b/Help/command/find_package.rst @@ -77,17 +77,17 @@ The command has a few modes by which it searches for packages: **Config mode** In this mode, CMake searches for a file matching any of: - * ``-config.cmake`` - * ``Config.cmake`` * ``.cps`` * ``.cps`` + * ``-config.cmake`` + * ``Config.cmake`` - If one of the first two is found, CMake will also look respectively, for + If one of the latter two is found, CMake will also look respectively, for ``-config-version.cmake`` or ``ConfigVersion.cmake`` if version details were specified (see :ref:`version selection` for an explanation of how these separate - version files are used). The first two options are CMake-script package - descriptions. The latter two are |CPS|_ (CPS) package descriptions, which + version files are used). The latter two options are CMake-script package + descriptions. The first two are |CPS|_ (CPS) package descriptions, which are more portable and include version information in the 'base' file. Aside from any explicitly noted exceptions, any references to "config files", "config mode", "package configuration files", and so forth refer equally to