CMP0190.rst 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. CMP0190
  2. -------
  3. .. versionadded:: 4.1
  4. Modules :module:`FindPython3`, :module:`FindPython2` and :module:`FindPython`
  5. enforce consistency of artifacts in cross-compiling mode.
  6. Starting with CMake 4.1, Modules :module:`FindPython3`, :module:`FindPython2`
  7. and :module:`FindPython` apply, in cross-compiling mode (i.e. the
  8. :variable:`CMAKE_CROSSCOMPILING` variable is set to true), the following
  9. constraints to the requested components:
  10. * ``Interpreter`` or ``Compiler`` alone: the host artifacts will be searched.
  11. * ``Interpreter`` or ``Compiler`` with ``Development`` or any sub-component:
  12. The target artifacts will be searched. In this case, the
  13. :variable:`CMAKE_CROSSCOMPILING_EMULATOR` variable must be defined and will
  14. be used to execute the interpreter or the compiler.
  15. This policy provides compatibility with projects that expect the legacy
  16. behavior.
  17. The ``OLD`` behavior for this policy does not enforce consistency in
  18. cross-compiling mode and will, potentially, returns a mix of artifacts
  19. (i.e. host and target artifacts).
  20. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 4.1
  21. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  22. .. include:: include/STANDARD_ADVICE.rst
  23. .. include:: include/DEPRECATED.rst