Skip to content

Commit

Permalink
Fix building on apple
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored Dec 31, 2024
1 parent e73ff05 commit e22281d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmake/SIPMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ MACRO(BUILD_SIP_PYTHON_MODULE MODULE_NAME SIP_FILES EXTRA_OBJECTS)
ENDIF (${SIP_VERSION_STR} VERSION_LESS 5.0.0)

SET_TARGET_PROPERTIES(${_logical_name} PROPERTIES CXX_VISIBILITY_PRESET default)
IF (NOT APPLE)
TARGET_LINK_LIBRARIES(${_logical_name} Python::Python)
ENDIF (NOT APPLE)
TARGET_LINK_LIBRARIES(${_logical_name} Python::Python)
TARGET_LINK_LIBRARIES(${_logical_name} ${EXTRA_LINK_LIBRARIES})
IF (APPLE)
SET_TARGET_PROPERTIES(${_logical_name} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
Expand Down

0 comments on commit e22281d

Please sign in to comment.