]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Use non-deprecated method of finding python
authorJan Henning <jan.thilo.henning@sap.com>
Thu, 19 May 2022 08:20:17 +0000 (10:20 +0200)
committerJan Henning <jan.thilo.henning@sap.com>
Thu, 19 May 2022 08:20:17 +0000 (10:20 +0200)
CMakeLists.txt

index cb4ba80676a0d195c74e99178fc928d2e1b1c911..99450660890b0d095f1061f3829f0f4f1f404a1b 100644 (file)
@@ -72,12 +72,10 @@ include_directories(SYSTEM include)
 include (${CMAKE_MODULE_PATH}/boost.cmake)
 
 # -- make this work? set(python_ADDITIONAL_VERSIONS 2.7 2.6)
-find_package(PythonInterp)
+find_package (Python COMPONENTS Interpreter Development)
 find_program(RAGEL ragel)
 
-if(PYTHONINTERP_FOUND)
-    set(PYTHON ${PYTHON_EXECUTABLE})
-else()
+if(NOT Python_Interpreter_FOUND)
     message(FATAL_ERROR "No python interpreter found")
 endif()