Skip to content

Commit

Permalink
Fix link failure on macOS (#133)
Browse files Browse the repository at this point in the history
### Motivation

We need to link the Python shared library on non-Windows systems as
well. Otherwise, some link errors might happen.
  • Loading branch information
BewareMyPower authored Jun 23, 2023
1 parent 1a2fb07 commit 766db9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ endif()
set(PYTHON_WRAPPER_LIBS
${PULSAR_LIBRARY}
)
if (MSVC)
set(PYTHON_WRAPPER_LIBS ${PYTHON_WRAPPER_LIBS} Python3::Module)
endif ()
set(PYTHON_WRAPPER_LIBS ${PYTHON_WRAPPER_LIBS} Python3::Module)

message(STATUS "All libraries: ${PYTHON_WRAPPER_LIBS}")

Expand Down

0 comments on commit 766db9e

Please sign in to comment.