Skip to content

Commit

Permalink
add fix for link error when jack is present on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
fishuyo committed Jan 8, 2024
1 parent 1751236 commit c761666
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 @@ -371,6 +371,14 @@ target_link_libraries(al PUBLIC
Gamma glfw glad rtmidi cpptoml dr_libs
nlohmann_json::nlohmann_json imgui oscpack stb serial)

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# On macOS if jack is present, RtMidi will link to jack but not provide the
# /usr/local/lib location as link directory. This statement only serves the
# purpose of working around that bug. Perhaps can be removed on future
# updates of RtMidi
link_directories("/usr/local/lib")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

macro(Copy_dlls dest_path target DLLS_TO_COPY)
if (DLLS_TO_COPY)
foreach(LIBRARY ${DLLS_TO_COPY})
Expand Down

0 comments on commit c761666

Please sign in to comment.