Skip to content

Commit

Permalink
Merge pull request #830 from drmpeg/link-fix
Browse files Browse the repository at this point in the history
Fix linking of Volk with a custom install prefix.
  • Loading branch information
argilo authored Oct 15, 2020
2 parents e14b590 + 9bbf336 commit 57334b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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()

Expand Down

0 comments on commit 57334b4

Please sign in to comment.