Skip to content

Commit

Permalink
fix CMake build on macOS (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
aWZHY0yQH81uOYvH authored Nov 11, 2023
1 parent b746752 commit 95ee06a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ set_target_properties(
synlig PROPERTIES SOVERSION "${SYNLIG_VERSION_MAJOR}.${SYNLIG_VERSION_MINOR}")
set_target_properties(synlig PROPERTIES OUTPUT_NAME "systemverilog")
set_target_properties(synlig PROPERTIES PREFIX "")
set_target_properties(synlig PROPERTIES SUFFIX ".so")

# Allow undefined symbols at link time on macOS. These symbols should already be
# present within yosys when the plugin is loaded.
if(APPLE)
set_target_properties(synlig PROPERTIES LINK_FLAGS
"-undefined dynamic_lookup")
endif()

target_include_directories(
synlig
Expand Down

0 comments on commit 95ee06a

Please sign in to comment.