diff --git a/CMakeLists.txt b/CMakeLists.txt index 836cf698c2..8e4d33dccc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt index 21862dafdd..2a8d36d49f 100644 --- a/Source/Core/Core/CMakeLists.txt +++ b/Source/Core/Core/CMakeLists.txt @@ -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)