CMake: build PortAudio as static library

Due to issues raised in #4255.
This commit is contained in:
Michael Maltese 2016-10-25 15:19:54 -07:00
parent 838b234317
commit 04e262513c
2 changed files with 3 additions and 1 deletions

View File

@ -559,9 +559,11 @@ if(NOT ANDROID)
endif()
if(SYSTEM_PORTAUDIO AND NOT APPLE)
message("Using shared PortAudio for mic support")
set(PORTAUDIO_LIBRARIES portaudio)
else()
message("Using static PortAudio from Externals for mic support")
add_subdirectory(Externals/portaudio)
set(PORTAUDIO_LIBRARIES portaudio_static)
endif()
endif()

View File

@ -274,7 +274,7 @@ if(HIDAPI_FOUND)
endif(HIDAPI_FOUND)
if(PORTAUDIO_FOUND)
set(LIBS ${LIBS} portaudio)
set(LIBS ${LIBS} ${PORTAUDIO_LIBRARIES})
endif(PORTAUDIO_FOUND)
if(OPROFILE_FOUND)