From e43d3f32fd9a1e08fc4c455e2b3c0f87bc1ff076 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 20 Apr 2022 16:46:06 +0200 Subject: [PATCH] cmake,soapy: fix finding of Soapy headers when installed in SOAPY_DIR env path --- cmake/modules/FindSoapySDR.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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