CMake/Tests/RunCMake/find_package/CMP0148-Libs-OLD.cmake
Brad King a4c5b91f80 FindPython{Interp,Libs}: Add policy to remove these modules
The `FindPythonInterp` and `FindPythonLibs` modules have been deprecated
since CMake 3.12.  Add a policy to pretend they do not exist in order to
encourage projects to port to `FindPython` or `FindPython{2,3}`.
2023-03-30 12:05:09 -04:00

8 lines
197 B
CMake

cmake_policy(SET CMP0148 OLD)
set(_FindPythonLibs_testing TRUE)
find_package(PythonLibs MODULE)
if(NOT _FindPythonLibs_included)
message(FATAL_ERROR "FindPythonLibs.cmake not included")
endif()