diff --git a/CMakeLists.txt b/CMakeLists.txt index fe35fd119..01bca7ef6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,6 +112,9 @@ find_package(Gnuradio-osmosdr REQUIRED) set(GR_REQUIRED_COMPONENTS RUNTIME ANALOG AUDIO BLOCKS DIGITAL FILTER FFT PMT) find_package(Gnuradio REQUIRED COMPONENTS analog audio blocks digital filter fft) +if(Gnuradio_VERSION VERSION_LESS "3.8") + find_package(Volk) +endif() if(NOT Gnuradio_FOUND) message(FATAL_ERROR "GnuRadio Runtime required to compile gqrx") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ffe3220da..914b63e29 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -71,7 +71,7 @@ target_link_libraries(${PROJECT_NAME} ${PULSEAUDIO_LIBRARY} ${PULSE-SIMPLE} ${PORTAUDIO_LIBRARIES} - volk + ${VOLK_LIBRARIES} ) if(NOT Gnuradio_VERSION VERSION_LESS "3.8") @@ -81,7 +81,7 @@ if(NOT Gnuradio_VERSION VERSION_LESS "3.8") gnuradio::gnuradio-digital gnuradio::gnuradio-filter gnuradio::gnuradio-audio - volk + Volk::volk ) endif()