build: move from PythonInterp to Python3
CMake has removed PythonInterp; see CMP0148
This commit is contained in:
parent
712eb837b1
commit
ff1fcfa977
@ -8,7 +8,7 @@ include(CheckCXXCompilerFlag)
|
||||
|
||||
include (search_libs)
|
||||
|
||||
find_package (PythonInterp 3 REQUIRED)
|
||||
find_package (Python3 REQUIRED COMPONENTS Interpreter)
|
||||
find_package (RAGEL 6.9 REQUIRED)
|
||||
find_package (fmt REQUIRED)
|
||||
|
||||
@ -647,7 +647,7 @@ OUTPUT
|
||||
COMMENT
|
||||
"[preprocessor.py] preprocessor.hpp"
|
||||
COMMAND
|
||||
"${PYTHON_EXECUTABLE}"
|
||||
"${Python3_EXECUTABLE}"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/preprocessor.py"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/prefix/${PREFIX}/preprocessor.hpp"
|
||||
480
|
||||
@ -854,7 +854,7 @@ if (TESTS)
|
||||
endforeach(t)
|
||||
|
||||
configure_file (test/cpp.py.in util_test_cpp.py @ONLY)
|
||||
add_test (NAME util_test_cpp COMMAND ${PYTHON_EXECUTABLE} util_test_cpp.py)
|
||||
add_test (NAME util_test_cpp COMMAND ${Python3_EXECUTABLE} util_test_cpp.py)
|
||||
set_property (TEST util_test_cpp APPEND PROPERTY DEPENDS util_macro)
|
||||
set_tests_properties(util_test_cpp PROPERTIES FAIL_REGULAR_EXPRESSION "not ok -")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user