mirror of
https://github.com/gwm17/catima.git
synced 2024-11-23 02:38:51 -05:00
python find update
This commit is contained in:
parent
0da79a867c
commit
0f3df34b60
|
@ -1,4 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.2.0)
|
cmake_minimum_required(VERSION 3.12.0)
|
||||||
project(catima)
|
project(catima)
|
||||||
|
|
||||||
############ options #############
|
############ options #############
|
||||||
|
@ -95,14 +95,14 @@ FILE(COPY ${HEADERS} DESTINATION ${PROJECT_BINARY_DIR}/include/catima)
|
||||||
MESSAGE( STATUS "CMAKE_CXX_COMPILER: " ${CMAKE_CXX_COMPILER} )
|
MESSAGE( STATUS "CMAKE_CXX_COMPILER: " ${CMAKE_CXX_COMPILER} )
|
||||||
|
|
||||||
######## for python module
|
######## for python module
|
||||||
find_package(PythonInterp)
|
find_package(Python COMPONENTS Interpreter Development)
|
||||||
if(PYTHONINTERP_FOUND)
|
if(Python_FOUND)
|
||||||
message(STATUS "Python found: ${PYTHON_EXECUTABLE}")
|
message(STATUS "Python found: ${Python_EXECUTABLE}")
|
||||||
endif()
|
endif()
|
||||||
if(PYTHON_MODULE)
|
if(PYTHON_MODULE)
|
||||||
if(NOT PYTHONINTERP_FOUND)
|
if(NOT Python_FOUND)
|
||||||
MESSAGE(SEND_ERROR "Python is required to build nurex python modules")
|
MESSAGE(SEND_ERROR "Python is required to build nurex python modules")
|
||||||
endif(NOT PYTHONINTERP_FOUND)
|
endif(NOT Python_FOUND)
|
||||||
find_package(pybind11 QUIET)
|
find_package(pybind11 QUIET)
|
||||||
if(NOT pybind11_FOUND)
|
if(NOT pybind11_FOUND)
|
||||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extern/pybind11)
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extern/pybind11)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user