CMP0201.rst 1.2 KB

123456789101112131415161718192021222324252627282930
  1. CMP0201
  2. -------
  3. .. versionadded:: 4.2
  4. ``Python::NumPy`` does not depend on ``Python::Development.Module``.
  5. :module:`FindPython3`, :module:`FindPython2`, and :module:`FindPython` provide
  6. ``Python{3,2,}::NumPy`` and ``Python{3,2,}::Development.Module`` targets when
  7. the corresponding components are requested.
  8. In CMake 4.1 and below, requesting the ``NumPy`` component implies the
  9. ``Development.Module`` component, and the provided ``Python{3,2,}::NumPy``
  10. targets depend on the provided ``Python{3,2,}::Development.Module`` targets.
  11. This dependency is not necessary.
  12. In CMake 4.2 and above, requesting the ``NumPy`` component does not imply the
  13. ``Development.Module`` component, and the provided ``Python{3,2,}::NumPy``
  14. targets do not depend on the provided ``Python{3,2,}::Development.Module``
  15. targets.
  16. This policy provides compatibility with projects that expect the legacy
  17. behavior.
  18. The ``OLD`` behavior for this policy makes ``NumPy`` depend on
  19. ``Development.Module``. The ``NEW`` behavior for this policy does not.
  20. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 4.2
  21. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  22. .. include:: include/STANDARD_ADVICE.rst
  23. .. include:: include/DEPRECATED.rst