From: Jan Henning Date: Thu, 19 May 2022 08:20:17 +0000 (+0200) Subject: Use non-deprecated method of finding python X-Git-Tag: vectorscan/5.4.8~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a35a467e0de51ece60b24f34ebfe2c03b8a9d32;p=thirdparty%2Fvectorscan.git Use non-deprecated method of finding python --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cb4ba806..99450660 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()