CMake: Don't use PythonInterp/PythonLibs when FindPython available

This commit is contained in:
Sam Edwards 2019-11-10 22:32:47 -07:00
parent 1c866dff78
commit 0b342d0f9f

View File

@ -120,7 +120,7 @@ if(Python_FOUND)
set(PYTHON_LIBRARY_DIRS ${Python_LIBRARY_DIRS})
set(PYTHON_VERSION_STRING ${Python_VERSION})
else()
elseif(CMAKE_VERSION VERSION_LESS "3.12")
find_package(PythonInterp ${WANT_PYTHON_VERSION} QUIET)
find_package(PythonLibs ${PYTHON_VERSION_STRING} QUIET)