diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 467be92..b143308 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -1,5 +1,5 @@ find_package(Boost COMPONENTS date_time filesystem system regex REQUIRED) -find_package(Python 3 COMPONENTS Development REQUIRED) +find_package(Python 3.6 COMPONENTS Development REQUIRED) file(GLOB_RECURSE headers "*.h") file(GLOB_RECURSE templates "*.txx") diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt index 9a68cba..917a413 100644 --- a/src/python/CMakeLists.txt +++ b/src/python/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(Python 3 COMPONENTS Interpreter REQUIRED) +find_package(Python 3.6 COMPONENTS Interpreter REQUIRED) execute_process( COMMAND ${Python_EXECUTABLE} diff --git a/src/python/dicomifier/CMakeLists.txt b/src/python/dicomifier/CMakeLists.txt index a6198fe..faf371d 100644 --- a/src/python/dicomifier/CMakeLists.txt +++ b/src/python/dicomifier/CMakeLists.txt @@ -6,7 +6,7 @@ if(NOT "${Odil_FOUND}") get_filename_component(Odil_INCLUDE_DIRS "${Odil_INCLUDE_DIRS}" DIRECTORY) find_library(Odil_LIBRARIES odil REQUIRED) endif() -find_package(Python 3 COMPONENTS Interpreter Development NumPy REQUIRED) +find_package(Python 3.6 COMPONENTS Interpreter Development NumPy REQUIRED) find_package(pybind11 2.0 REQUIRED) include_directories(${CMAKE_SOURCE_DIR}/src/lib ${PYTHON_INCLUDE_DIRS})