瀏覽代碼

Merge topic 'document_find_package_dir_version'

f104bdb3b9 Help: Specify `<PackageName>_DIR` interaction with a version

Acked-by: Kitware Robot <[email protected]>
Merge-request: !11114
Brad King 5 月之前
父節點
當前提交
c3bdb07a94
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Help/command/find_package.rst

+ 3 - 1
Help/command/find_package.rst

@@ -338,7 +338,9 @@ an error describing the problem unless the ``QUIET`` argument is
 specified.  If ``REQUIRED`` is specified and the package is not found, a
 specified.  If ``REQUIRED`` is specified and the package is not found, a
 fatal error is generated and the configure step stops executing.  If
 fatal error is generated and the configure step stops executing.  If
 ``<PackageName>_DIR`` has been set to a directory not containing a
 ``<PackageName>_DIR`` has been set to a directory not containing a
-configuration file, CMake will ignore it and search from scratch.
+configuration file, or if the requested version is not compatible
+with the package found in that directory (see :ref:`version selection`),
+CMake will ignore it and search from scratch.
 
 
 Package maintainers providing package configuration files are encouraged to
 Package maintainers providing package configuration files are encouraged to
 name and install them such that the :ref:`search procedure` outlined below
 name and install them such that the :ref:`search procedure` outlined below