CMP0017.rst 994 B

12345678910111213141516171819202122
  1. CMP0017
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. Prefer files from the CMake module directory when including from there.
  6. Starting with CMake 2.8.4, if a cmake-module shipped with CMake (i.e.
  7. located in the CMake module directory) calls :command:`include` or
  8. :command:`find_package`, the files located in the CMake module directory are
  9. preferred over the files in :variable:`CMAKE_MODULE_PATH`. This makes sure
  10. that the modules belonging to CMake always get those files included which
  11. they expect, and against which they were developed and tested. In all
  12. other cases, the files found in :variable:`CMAKE_MODULE_PATH` still take
  13. precedence over the ones in the CMake module directory. The ``OLD``
  14. behavior is to always prefer files from CMAKE_MODULE_PATH over files
  15. from the CMake modules directory.
  16. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 2.8.4
  17. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  18. .. include:: include/REMOVED_EPILOGUE.rst