Commit 4a8fb45f authored by deuce's avatar deuce
Browse files

Don't link against portaudio, we used dlopen() and friends for that.

parent d87316e0
...@@ -137,18 +137,14 @@ if(PORTAUDIO2_FOUND) ...@@ -137,18 +137,14 @@ if(PORTAUDIO2_FOUND)
set(PORTAUDIO_LIBS PORTAUDIO2_LIBS) set(PORTAUDIO_LIBS PORTAUDIO2_LIBS)
set(PORTAUDIO_CFLAGS PORTAUDIO2_CFLAGS) set(PORTAUDIO_CFLAGS PORTAUDIO2_CFLAGS)
else() else()
find_library(PORTAUDIO_LIBS portaudio) find_path(PORTAUDIO_INCLUDEDIR portaudio.h)
if(NOT PORTAUDIO_LIBS STREQUAL PORTAUDIO_LIBS-NOTFOUND) if(NOT PORTAUDIO_INCLUDEDIR STREQUAL PORTAUDIO_INCLUDEIDR-NOTFOUND)
find_path(PORTAUDIO_INCLUDEDIR portaudio.h) set(PORTAUDIO_FOUND TRUE)
if(NOT PORTAUDIO_INCLUDEDIR STREQUAL PORTAUDIO_INCLUDEIDR-NOTFOUND)
set(PORTAUDIO_FOUND TRUE)
endif()
endif() endif()
endif() endif()
if(PORTAUDIO_FOUND) if(PORTAUDIO_FOUND)
target_include_directories(xpdev PRIVATE ${PORTAUDIO_INCLUDEDIR}) target_include_directories(xpdev PRIVATE ${PORTAUDIO_INCLUDEDIR})
target_link_libraries(xpdev ${PORTAUDIO_LIBS})
endif() endif()
CHECK_INCLUDE_FILES(alsa/asoundlib.h USE_ALSA_SOUND) CHECK_INCLUDE_FILES(alsa/asoundlib.h USE_ALSA_SOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment