sdrangel
sdrangel copied to clipboard
Soapy module doesn't build
I think the code to detect the soapy library is broken. However, I'm not a cmake specialist. The following change fixed it for me:
diff --git a/cmake/Modules/FindSoapySDR.cmake b/cmake/Modules/FindSoapySDR.cmake
index d52c3432e..babac4659 100644
--- a/cmake/Modules/FindSoapySDR.cmake
+++ b/cmake/Modules/FindSoapySDR.cmake
@@ -11,7 +11,7 @@ if(NOT SOAPYSDR_FOUND)
pkg_search_module (LIBSOAPYSDR_PKG soapysdr>=0.4.0 SoapySDR>=0.4.0)
- if(NOT LIBSOAPYSDR_PKG_FOUND OR (DEFINED SOAPYSDR_DIR))
+ if(LIBSOAPYSDR_PKG_FOUND OR (DEFINED SOAPYSDR_DIR))
find_path (SOAPYSDR_INCLUDE_DIR
NAMES SoapySDR/Version.h
@@ -47,6 +47,6 @@ if(NOT SOAPYSDR_FOUND)
mark_as_advanced(SOAPYSDR_INCLUDE_DIR SOAPYSDR_LIBRARY SOAPYSDR_ROOT SOAPYSDR_ABI_VERSION)
- endif(NOT LIBSOAPYSDR_PKG_FOUND OR (DEFINED SOAPYSDR_DIR))
+ endif(LIBSOAPYSDR_PKG_FOUND OR (DEFINED SOAPYSDR_DIR))
endif(NOT SOAPYSDR_FOUND)