summaryrefslogtreecommitdiffstats
path: root/Modules/CMakePackageConfigHelpers.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-09-13 14:32:32 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-09-23 10:52:25 (GMT)
commit5b3356263cf8f00c79c25aa9e3ac71ffd8cc7e7e (patch)
treea219a6ba773248d05b8674c665addb9854593440 /Modules/CMakePackageConfigHelpers.cmake
parent6bfc442fde18f5544d7e7333d12701050a765535 (diff)
downloadCMake-5b3356263cf8f00c79c25aa9e3ac71ffd8cc7e7e.zip
CMake-5b3356263cf8f00c79c25aa9e3ac71ffd8cc7e7e.tar.gz
CMake-5b3356263cf8f00c79c25aa9e3ac71ffd8cc7e7e.tar.bz2
CMakePackageConfigHelpers: Add version range support
Diffstat (limited to 'Modules/CMakePackageConfigHelpers.cmake')
-rw-r--r--Modules/CMakePackageConfigHelpers.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakePackageConfigHelpers.cmake b/Modules/CMakePackageConfigHelpers.cmake
index 22fc953..50d7605 100644
--- a/Modules/CMakePackageConfigHelpers.cmake
+++ b/Modules/CMakePackageConfigHelpers.cmake
@@ -159,6 +159,11 @@ If your project has more elaborated version matching rules, you will need to
write your own custom ``ConfigVersion.cmake`` file instead of using this
macro.
+.. note:: ``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 range and will display an
+ author warning if a one is specified.
+
If ``ARCH_INDEPENDENT`` is given, the installed package version will be
considered compatible even if it was built for a different architecture than
the requested architecture. Otherwise, an architecture check will be performed,