Skip to content

Commit

Permalink
Merge pull request YosysHQ#144 from antmicro/libtrellis-osx
Browse files Browse the repository at this point in the history
libtrellis: customize linking libraries for macOS
  • Loading branch information
gatecat committed Jun 22, 2020
2 parents 5c9f6ad + 4c4264b commit 5996376
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libtrellis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ endif()
if (BUILD_PYTHON)
PYTHON_ADD_MODULE(pytrellis ${INCLUDE_FILES} ${SOURCE_FILES})
target_compile_definitions(pytrellis PRIVATE INCLUDE_PYTHON=1)
target_link_libraries(pytrellis LINK_PUBLIC ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
if (APPLE)
target_link_libraries(pytrellis LINK_PUBLIC ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} "-undefined dynamic_lookup -bundle")
else()
target_link_libraries(pytrellis LINK_PUBLIC ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
endif()
endif()

include(GNUInstallDirs)
Expand Down

0 comments on commit 5996376

Please sign in to comment.