mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-28 21:54:00 +08:00
30 lines
1.0 KiB
ReStructuredText
30 lines
1.0 KiB
ReStructuredText
|
CMP0148
|
||
|
-------
|
||
|
|
||
|
.. versionadded:: 3.27
|
||
|
|
||
|
The :module:`FindPythonInterp` and :module:`FindPythonLibs` modules are removed.
|
||
|
|
||
|
These modules have been deprecated since CMake 3.12.
|
||
|
CMake 3.27 and above prefer to not provide the modules.
|
||
|
This policy provides compatibility for projects that have not been
|
||
|
ported away from them.
|
||
|
|
||
|
Projects using the :module:`FindPythonInterp` and/or :module:`FindPythonLibs`
|
||
|
modules should be updated to use one of their replacements:
|
||
|
|
||
|
* :module:`FindPython3`
|
||
|
* :module:`FindPython2`
|
||
|
* :module:`FindPython`
|
||
|
|
||
|
The ``OLD`` behavior of this policy is for ``find_package(PythonInterp)``
|
||
|
and ``find_package(PythonLibs)`` to load the deprecated modules. The ``NEW``
|
||
|
behavior is for uses of the modules to fail as if they do not exist.
|
||
|
|
||
|
This policy was introduced in CMake version 3.27. CMake version
|
||
|
|release| warns when the policy is not set and uses ``OLD`` behavior.
|
||
|
Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
|
||
|
explicitly.
|
||
|
|
||
|
.. include:: DEPRECATED.txt
|