diff --git a/cmake-proxies/portmidi/CMakeLists.txt b/cmake-proxies/portmidi/CMakeLists.txt index af13cae7b..50d24916b 100644 --- a/cmake-proxies/portmidi/CMakeLists.txt +++ b/cmake-proxies/portmidi/CMakeLists.txt @@ -3,6 +3,12 @@ add_library( ${TARGET} STATIC ) def_vars() +if( CMAKE_SYSTEM_NAME MATCHES "Linux|FreeBSD" ) + if( ${_OPT}use_pa_alsa ) + find_package( ALSA ) + endif() +endif() + list( APPEND SOURCES PRIVATE ${TARGET_ROOT}/pm_common/portmidi.c