Skip to content

Commit 656f004

Browse files
committed
Fixed bug in linkage for macos.
1 parent 44e4476 commit 656f004

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
136136
endif()
137137

138138
target_link_libraries(backend PRIVATE ${Nyxus_LIBRARIES})
139-
target_link_libraries(backend PRIVATE ${Python_LIBRARIES})
139+
140+
if (NOT APPLE)
141+
target_link_libraries(backend PRIVATE ${Python_LIBRARIES})
142+
else ()
143+
set_target_properties(backend PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
144+
endif()
145+
140146

141147
if(BUILD_CLI)
142148
target_link_libraries(nyxus PRIVATE ${Nyxus_LIBRARIES})

0 commit comments

Comments
 (0)