From 13d4fd174b734c87fdf0c4fdfe92dfe940403966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20F=C3=BCrste?= Date: Mon, 13 Sep 2021 12:36:48 +0200 Subject: [PATCH] cmake: Export non-default SoapySDR driver path --- cmake/modules/FindSoapySDR.cmake | 3 +++ 1 file changed, 3 insertions(+) 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