# CMP0148

New in version 3.27.

The `FindPythonInterp` and `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 `FindPythonInterp` and/or `FindPythonLibs` modules should be updated to use one of their replacements:

- `FindPython3`

- `FindPython2`

- `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 3.28.0-rc1 warns when the policy is not set and uses `OLD` behavior. Use the `cmake_policy()` command to set it to `OLD` or `NEW` explicitly.

Note

The `OLD` behavior of a policy is `deprecated by definition` and may be removed in a future version of CMake.