diff --git a/cmake/modules/FindSoapySDR.cmake b/cmake/modules/FindSoapySDR.cmake index bdd410fb4..b691b5af0 100644 --- a/cmake/modules/FindSoapySDR.cmake +++ b/cmake/modules/FindSoapySDR.cmake @@ -12,6 +12,8 @@ if(NOT SOAPYSDR_FOUND) find_path(SOAPYSDR_INCLUDE_DIRS NAMES Device.h + HINTS $ENV{SOAPY_DIR}/include + $ENV{SOAPY_DIR}/include/SoapySDR PATHS ${SOAPYSDR_PKG_INCLUDE_DIRS} /usr/include/SoapySDR /usr/local/include/SoapySDR @@ -19,6 +21,7 @@ if(NOT SOAPYSDR_FOUND) find_library(SOAPYSDR_LIBRARIES NAMES SoapySDR + HINTS $ENV{SOAPY_DIR}/lib PATHS ${SOAPYSDR_PKG_LIBRARY_DIRS} /usr/lib /usr/local/lib