Merge pull request #4388 from ligfx/portaudio_static

CMake: build PortAudio as static library
This commit is contained in:
Jules Blok 2016-11-01 18:32:12 +01:00 committed by GitHub
commit 49ac577ac0
2 changed files with 3 additions and 1 deletions

View File

@ -569,9 +569,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)