CMP0109.rst 999 B

12345678910111213141516171819202122
  1. CMP0109
  2. -------
  3. :command:`find_program` requires permission to execute but not to read.
  4. In CMake 3.18 and below, the :command:`find_program` command on UNIX
  5. would find files that are readable without requiring execute permission,
  6. and would not find files that are executable without read permission.
  7. In CMake 3.19 and above, ``find_program`` now prefers to require execute
  8. permission but not read permission. This policy provides compatibility
  9. with projects that have not been updated to expect the new behavior.
  10. The ``OLD`` behavior for this policy is for ``find_program`` to require
  11. read permission but not execute permission.
  12. The ``NEW`` behavior for this policy is for ``find_program`` to require
  13. execute permission but not read permission.
  14. This policy was introduced in CMake version 3.19. CMake version |release|
  15. warns when the policy is not set and uses ``OLD`` behavior. Use the
  16. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  17. .. include:: DEPRECATED.txt