Skip to content

Commit

Permalink
Fix PortAudio with GNU Radio 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Jun 7, 2020
1 parent bcf8531 commit a2c3ff8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Expand Up @@ -147,7 +147,11 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
unset(PORTAUDIO_INCLUDE_DIRS CACHE)
unset(PORTAUDIO_LIBRARIES CACHE)
elseif(${LINUX_AUDIO_BACKEND} MATCHES "Portaudio")
find_package(Portaudio REQUIRED)
if(Gnuradio_VERSION VERSION_LESS "3.8")
find_package(Portaudio REQUIRED)
else()
find_package(PORTAUDIO REQUIRED)
endif()
add_definitions(-DWITH_PORTAUDIO)
unset(PULSEAUDIO_FOUND CACHE)
unset(PULSEAUDIO_INCLUDE_DIR CACHE)
Expand Down

0 comments on commit a2c3ff8

Please sign in to comment.