Browse Source

Help: Clarify find_package version range limitation

Issue: #26470
SunBlack 1 year ago
parent
commit
041537e5ce
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Help/command/find_package.rst

+ 5 - 0
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.