mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Use non-deprecated method of finding python
This commit is contained in:
parent
fc5059aa10
commit
0a35a467e0
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user