FindPython: On Windows, Enhance python debug version support

Add the following variables:
* Python_EXECUTABLE_DEBUG
* Python_INTERPRETER
* Python_DEBUG_POSTFIX

and target Python::InterpreterDebug.

python_add_library() command Manage DEBUG_POSTFIX target property based
on the value of Python_DEBUG_POSTFIX variable.

Fixes: #25874
This commit is contained in:
Marc Chevrier
2024-04-27 17:16:52 +02:00
parent 648a7fb9b9
commit c164404b2e
43 changed files with 279 additions and 62 deletions
+20
View File
@@ -0,0 +1,20 @@
FindPython-DEBUG
----------------
* The :module:`FindPython`, :module:`FindPython2` and :module:`FindPython3`
modules offer, on ``Windows`` platform, a better support of the ``Python``
debug version:
* new variables:
* ``Python_EXECUTABLE_DEBUG``
* ``Python_INTERPRETER``
* ``Python_DEBUG_POSTFIX``
* new targets:
* ``Python::InterpreterDebug``
* ``Python::InterpreterMultiConfig``
And the ``python_add_library()`` command manage the :prop_tgt:`DEBUG_POSTFIX`
target property based on the value of the ``Python_DEBUG_POSTFIX`` variable.