Skip to content

Commit

Permalink
fix Python
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Dec 25, 2024
1 parent f2bc0ff commit d046687
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,14 @@ endif("${isSystemDir}" STREQUAL "-1")

# Python bindings

# Grab Python
find_package(
Python
COMPONENTS Interpreter Development.Module numpy
)
find_package(Python COMPONENTS Interpreter Development NumPy)

if (Python_FOUND)
message(STATUS "Python found: ${Python_EXECUTABLE}")
message(STATUS "Python version: ${Python_VERSION}")
message(STATUS "Python include dirs: ${Python_INCLUDE_DIRS}")
message(STATUS "Python libraries: ${Python_LIBRARIES}")
else()
message(STATUS "Python: ${Python_EXECUTABLE}")
message(STATUS "Python version: ${Python_VERSION}")
message(STATUS "Python include dirs: ${Python_INCLUDE_DIRS}")
message(STATUS "Python libraries: ${Python_LIBRARIES}")

if (NOT Python_FOUND)
message("Python with NumPy not found, skipping interface build.")
return()
endif()
Expand Down

0 comments on commit d046687

Please sign in to comment.