CMP0094.rst 929 B

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