Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
fix portaudio static lib linking for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Apr 17, 2024
1 parent a3f5d0f commit 83df97c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/audio/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ set(AUDIO_SRC
add_library(${TARGET} STATIC ${AUDIO_SRC})
add_library(${TARGET}_wrapper SHARED ${AUDIO_SRC}) # required for bindings

target_link_libraries(${TARGET} SndFile::sndfile portaudio)
target_link_libraries(${TARGET}_wrapper SndFile::sndfile portaudio)

if(APPLE)
target_link_libraries(${TARGET} SndFile::sndfile portaudio_static)
target_link_libraries(${TARGET}_wrapper SndFile::sndfile portaudio_static)
else()
target_link_libraries(${TARGET} SndFile::sndfile portaudio)
target_link_libraries(${TARGET}_wrapper SndFile::sndfile portaudio)
endif()
install(TARGETS ${TARGET})

0 comments on commit 83df97c

Please sign in to comment.