summaryrefslogtreecommitdiff
path: root/Modules/CMakePackageConfigHelpers.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-12-14 14:55:05 +0100
committerCraig Scott <craig.scott@crascit.com>2020-12-15 09:24:09 +1100
commit55c3b6a77e700554e6303f5cd6c4e443499363d8 (patch)
tree863c579ad420c3f7849ac7e8e46211d1dfcaadae /Modules/CMakePackageConfigHelpers.cmake
parent82b25be80afc92da045d04a37e121a3fa97392c0 (diff)
downloadcmake-55c3b6a77e700554e6303f5cd6c4e443499363d8.tar.gz
CMakePackageConfigHelpers: Relax restrictions on version range
Diffstat (limited to 'Modules/CMakePackageConfigHelpers.cmake')
-rw-r--r--Modules/CMakePackageConfigHelpers.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/CMakePackageConfigHelpers.cmake b/Modules/CMakePackageConfigHelpers.cmake
index 372e9f4632..ad719ef5af 100644
--- a/Modules/CMakePackageConfigHelpers.cmake
+++ b/Modules/CMakePackageConfigHelpers.cmake
@@ -177,9 +177,10 @@ macro.
packages with no binaries.
.. versionadded:: 3.19
- ``COMPATIBILITY_MODE`` ``AnyNewerVersion`` handles the version range
- if any is specified (see :command:`find_package` command for the details).
- All other modes are incompatible with version ranges and will display an
+ ``COMPATIBILITY_MODE`` ``AnyNewerVersion``, ``SameMajorVersion`` and
+ ``SameMinorVersion`` handle the version range if any is specified
+ (see :command:`find_package` command for the details).
+ ``ExactVersion`` mode is incompatible with version ranges and will display an
author warning if one is specified.
Internally, this macro executes :command:`configure_file()` to create the