From e22281d4db01710d745001a10b52cee10a40ddbe Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 31 Dec 2024 12:16:50 +0100 Subject: [PATCH] Fix building on apple --- cmake/SIPMacros.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/SIPMacros.cmake b/cmake/SIPMacros.cmake index bc30dbf9eec1..5fd49ac0a09d 100644 --- a/cmake/SIPMacros.cmake +++ b/cmake/SIPMacros.cmake @@ -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")