Skip to content

Commit

Permalink
Display Python interpreter used by CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
lamyj committed Mar 10, 2024
1 parent ec2d0e4 commit a2e973f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
find_package(Python 3.6 COMPONENTS Interpreter Development REQUIRED)
message("Python interpreter: ${Python_EXECUTABLE}")

set(tools "dicomifier")
foreach(tool ${tools})
configure_file(${tool} ${tool})
Expand Down
3 changes: 2 additions & 1 deletion src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
find_package(Boost COMPONENTS date_time filesystem system regex REQUIRED)
find_package(Python 3.6 COMPONENTS Development REQUIRED)
find_package(Python 3.6 COMPONENTS Interpreter Development REQUIRED)
message("Python interpreter: ${Python_EXECUTABLE}")

file(GLOB_RECURSE headers "*.h")
file(GLOB_RECURSE templates "*.txx")
Expand Down
1 change: 1 addition & 0 deletions src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
find_package(Python 3.6 COMPONENTS Interpreter REQUIRED)
message("Python interpreter: ${Python_EXECUTABLE}")

execute_process(
COMMAND ${Python_EXECUTABLE}
Expand Down
1 change: 1 addition & 0 deletions src/python/dicomifier/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if(NOT "${Odil_FOUND}")
find_library(Odil_LIBRARIES odil REQUIRED)
endif()
find_package(Python 3.6 COMPONENTS Interpreter Development NumPy REQUIRED)
message("Python interpreter: ${Python_EXECUTABLE}")
find_package(pybind11 2.0 REQUIRED)

include_directories(${CMAKE_SOURCE_DIR}/src/lib ${PYTHON_INCLUDE_DIRS})
Expand Down

0 comments on commit a2e973f

Please sign in to comment.