CMP0094.rst 905 B

12345678910111213141516171819202122
  1. CMP0094
  2. -------
  3. Modules :module:`FindPython3`, :module:`FindPython2` and :module:`FindPython`
  4. use ``LOCATION`` for lookup strategy.
  5. Starting with CMake 3.15, Modules :module:`FindPython3`, :module:`FindPython2`
  6. and :module:`FindPython` set value ``LOCATION`` for, respectively, variables
  7. ``Python3_FIND_STRATEGY``, ``Python2_FIND_STRATEGY`` and
  8. ``Python_FIND_STRATEGY``. This policy provides compatibility with projects that
  9. expect the legacy behavior.
  10. The ``OLD`` behavior for this policy set value ``VERSION`` for variables
  11. ``Python3_FIND_STRATEGY``, ``Python2_FIND_STRATEGY`` and
  12. ``Python_FIND_STRATEGY``.
  13. This policy was introduced in CMake version 3.15. Use the
  14. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  15. Unlike many policies, CMake version |release| does *not* warn
  16. when this policy is not set and simply uses the ``OLD`` behavior.
  17. .. include:: DEPRECATED.txt