CMP0017.rst 952 B

123456789101112131415161718192021
  1. CMP0017
  2. -------
  3. Prefer files from the CMake module directory when including from there.
  4. Starting with CMake 2.8.4, if a cmake-module shipped with CMake (i.e.
  5. located in the CMake module directory) calls include() or
  6. find_package(), the files located in the CMake module directory are
  7. preferred over the files in CMAKE_MODULE_PATH. This makes sure that
  8. the modules belonging to CMake always get those files included which
  9. they expect, and against which they were developed and tested. In all
  10. other cases, the files found in CMAKE_MODULE_PATH still take
  11. precedence over the ones in the CMake module directory. The OLD
  12. behavior is to always prefer files from CMAKE_MODULE_PATH over files
  13. from the CMake modules directory.
  14. This policy was introduced in CMake version 2.8.4. CMake version
  15. |release| warns when the policy is not set and uses OLD behavior. Use
  16. the cmake_policy command to set it to OLD or NEW explicitly.
  17. .. include:: DEPRECATED.txt