Skip to content

Commit

Permalink
ci/macOS: allow for custom paths when using Python
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Stanea <[email protected]>
  • Loading branch information
Adrian-Stanea committed Aug 6, 2024
1 parent 8346860 commit 99fb16d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,18 @@ if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
set(Python_INCLUDE_PATH ${PYTHON_INCLUDE_PATH})
set(Python_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS})
else()
if(PYTHON_EXECUTABLE)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
if (PYTHON_LIBRARY)
set(Python_LIBRARY ${PYTHON_LIBRARY})
endif()
if (PYTHON_INCLUDE_DIR)
set(Python_INCLUDE_DIR ${PYTHON_INCLUDE_DIR})
endif()
message(STATUS "bin=${Python_EXECUTABLE} lib=${Python_LIBRARY} inc=${Python_INCLUDE_DIR}")
find_package(Python COMPONENTS Interpreter Development)
message(STATUS "Python_EXECUTABLE ${Python_EXECUTABLE}")
endif()

FIND_PACKAGE(SWIG REQUIRED)
Expand Down

0 comments on commit 99fb16d

Please sign in to comment.