FindPython: NumPy target does not depend on Development.Module

Fixes: #27123
This commit is contained in:
Marc Chevrier
2025-08-17 18:04:27 +02:00
parent 46fc0232ae
commit 0a4a4d2053
15 changed files with 162 additions and 26 deletions
+12 -3
View File
@@ -42,10 +42,14 @@ The following components are supported:
`Stable Application Binary Interface <https://docs.python.org/3/c-api/stable.html>`_.
This component is available only for version ``3.2`` and upper.
* ``NumPy``: search for NumPy include directories.
.. versionadded:: 3.14
Added the ``NumPy`` component.
* ``NumPy``: search for NumPy include directories. Specifying this component
imply also the components ``Interpreter`` and ``Development.Module``.
.. versionchanged:: 4.2
The component ``Development.Module`` is no longer implied when the policy
:policy:`CMP0201` is set to ``NEW``.
If no ``COMPONENTS`` are specified, ``Interpreter`` is assumed.
@@ -140,6 +144,11 @@ This module provides the following :ref:`Imported Targets`:
.. versionadded:: 3.14
NumPy library for Python 3. Target defined if component ``NumPy`` is found.
Moreover, this target has the ``Python3::Module`` target as dependency.
.. versionchanged:: 4.2
This target does not have anymore the ``Python3::Module`` target as
dependency when the policy :policy:`CMP0201` is set to ``NEW``.
Result Variables
^^^^^^^^^^^^^^^^