Skip to content

Commit

Permalink
Fix python linking
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeulen committed Feb 11, 2024
1 parent 8bf668c commit cfc51fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}")


IF(BUILD_PYTHON_INTERFACE)
FIND_PACKAGE(Python)
FIND_PACKAGE(Python ${PYTHON_VERSION} EXACT COMPONENTS Interpreter Development.Module NumPy)
INCLUDE_DIRECTORIES(BEFORE ${Python_NumPy_PATH} ${Python_INCLUDE_DIRS})
LINK_LIBRARIES(${Python_LIBRARY} Python::NumPy)

MESSAGE(${SRC_files})
FILE(TO_CMAKE_PATH "${CMAKE_SWIG_OUTDIR}" CMAKE_SWIG_OUTDIR)
message(CMAKE_SWIG_OUTDIR="${CMAKE_SWIG_OUTDIR}")
Expand Down

0 comments on commit cfc51fe

Please sign in to comment.