From 041537e5ce260f7be93046212e276f0aaee8e550 Mon Sep 17 00:00:00 2001 From: SunBlack Date: Tue, 26 Nov 2024 14:47:59 +0100 Subject: [PATCH] Help: Clarify find_package version range limitation Issue: #26470 --- Help/command/find_package.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Help/command/find_package.rst b/Help/command/find_package.rst index d99dbd5572..3ffabacecf 100644 --- a/Help/command/find_package.rst +++ b/Help/command/find_package.rst @@ -184,6 +184,11 @@ specified: on components being integers as the single version. By default, both end points are included. By specifying ``<``, the upper end point will be excluded. Version ranges are only supported with CMake 3.19 or later. + Note that it is not possible to extend the compatibility range specified + by the package's version file. For example, if the package version file + specifies compatibility within a minor version, it is not possible to + extend the compatibility to several minor versions by specifying a + version range. The ``EXACT`` option requests that the version be matched exactly. This option is incompatible with the specification of a version range.