Merge pull request #4388 from ligfx/portaudio_static
CMake: build PortAudio as static library
This commit is contained in:
commit
49ac577ac0
|
@ -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()
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue