Merge topic 'doc-CMP0017'

c3507b54 Help: Clarify wording of include() for builtin module directories
This commit is contained in:
Brad King 2016-09-15 14:16:07 -04:00 committed by CMake Topic Stage
commit 6e06a53ebf

View File

@ -15,10 +15,10 @@ is present, then no error is raised if the file does not exist. If
which has been included or NOTFOUND if it failed. which has been included or NOTFOUND if it failed.
If a module is specified instead of a file, the file with name If a module is specified instead of a file, the file with name
<modulename>.cmake is searched first in :variable:`CMAKE_MODULE_PATH`, ``<modulename>.cmake`` is searched first in :variable:`CMAKE_MODULE_PATH`,
then in the CMake module directory. There is one exception to this: if then in the CMake module directory. There is one exception to this: if
the file which calls ``include()`` is located itself in the CMake module the file which calls ``include()`` is located itself in the CMake builtin
directory, then first the CMake module directory is searched and module directory, then first the CMake builtin module directory is searched and
:variable:`CMAKE_MODULE_PATH` afterwards. See also policy :policy:`CMP0017`. :variable:`CMAKE_MODULE_PATH` afterwards. See also policy :policy:`CMP0017`.
See the :command:`cmake_policy` command documentation for discussion of the See the :command:`cmake_policy` command documentation for discussion of the