diff --git a/cmake/modules/FindSoapySDR.cmake b/cmake/modules/FindSoapySDR.cmake index cf3512dda..f6c1e3496 100644 --- a/cmake/modules/FindSoapySDR.cmake +++ b/cmake/modules/FindSoapySDR.cmake @@ -11,11 +11,11 @@ if(NOT SOAPYSDR_FOUND) pkg_check_modules (SOAPYSDR_PKG SoapySDR) find_path(SOAPYSDR_INCLUDE_DIRS - NAMES Device.h + NAMES SoapySDR/Device.h HINTS $ENV{SOAPY_DIR}/include PATHS ${SOAPYSDR_PKG_INCLUDE_DIRS} - /usr/include/SoapySDR - /usr/local/include/SoapySDR + /usr/include + /usr/local/include ) find_library(SOAPYSDR_LIBRARIES