Skip to content

Commit

Permalink
Fixed bug in linkage for macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsidky committed Feb 2, 2022
1 parent 44e4476 commit 656f004
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
endif()

target_link_libraries(backend PRIVATE ${Nyxus_LIBRARIES})
target_link_libraries(backend PRIVATE ${Python_LIBRARIES})

if (NOT APPLE)
target_link_libraries(backend PRIVATE ${Python_LIBRARIES})
else ()
set_target_properties(backend PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif()


if(BUILD_CLI)
target_link_libraries(nyxus PRIVATE ${Nyxus_LIBRARIES})
Expand Down

0 comments on commit 656f004

Please sign in to comment.