CMake: build PortAudio as static library
Due to issues raised in #4255.
This commit is contained in:
parent
838b234317
commit
04e262513c
|
@ -559,9 +559,11 @@ if(NOT ANDROID)
|
||||||
endif()
|
endif()
|
||||||
if(SYSTEM_PORTAUDIO AND NOT APPLE)
|
if(SYSTEM_PORTAUDIO AND NOT APPLE)
|
||||||
message("Using shared PortAudio for mic support")
|
message("Using shared PortAudio for mic support")
|
||||||
|
set(PORTAUDIO_LIBRARIES portaudio)
|
||||||
else()
|
else()
|
||||||
message("Using static PortAudio from Externals for mic support")
|
message("Using static PortAudio from Externals for mic support")
|
||||||
add_subdirectory(Externals/portaudio)
|
add_subdirectory(Externals/portaudio)
|
||||||
|
set(PORTAUDIO_LIBRARIES portaudio_static)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -274,7 +274,7 @@ if(HIDAPI_FOUND)
|
||||||
endif(HIDAPI_FOUND)
|
endif(HIDAPI_FOUND)
|
||||||
|
|
||||||
if(PORTAUDIO_FOUND)
|
if(PORTAUDIO_FOUND)
|
||||||
set(LIBS ${LIBS} portaudio)
|
set(LIBS ${LIBS} ${PORTAUDIO_LIBRARIES})
|
||||||
endif(PORTAUDIO_FOUND)
|
endif(PORTAUDIO_FOUND)
|
||||||
|
|
||||||
if(OPROFILE_FOUND)
|
if(OPROFILE_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue