cmake: Fix CMake 3.27 warnings
The FindPythonInterp and FindPythonLibs modules, which have been deprecated since CMake 3.12, have been removed by policy CMP0148. Port projects to FindPython3, FindPython2, or FindPython.
This commit is contained in:
parent
72713baf74
commit
5793fbd624
2 changed files with 3 additions and 3 deletions
|
|
@ -276,7 +276,7 @@ else()
|
|||
endif()
|
||||
|
||||
if(BUILD_EXTERNAL AND IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/External)
|
||||
find_host_package(PythonInterp 3 REQUIRED)
|
||||
find_host_package(Python3 REQUIRED)
|
||||
|
||||
# We depend on these for later projects, so they should come first.
|
||||
add_subdirectory(External)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue