From 690bccccc6ad90e77832b0295a448e32bd9c0784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20F=C3=BCrste?= Date: Mon, 13 Sep 2021 15:48:05 +0200 Subject: [PATCH] cmake: Export non-default Limesuite driver path --- cmake/modules/FindLimeSDR.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/FindLimeSDR.cmake b/cmake/modules/FindLimeSDR.cmake index 6186350e4..cf31cfaa4 100644 --- a/cmake/modules/FindLimeSDR.cmake +++ b/cmake/modules/FindLimeSDR.cmake @@ -11,13 +11,16 @@ if(NOT LIMESDR_FOUND) find_path(LIMESDR_INCLUDE_DIRS NAMES LimeSuite.h + HINTS $ENV{LIMESUITE_DIR}/include PATHS ${LIMESDR_PKG_INCLUDE_DIRS} /usr/include/lime /usr/local/include/lime + $ENV{LIMESUITE_DIR}/include/lime ) find_library(LIMESDR_LIBRARIES NAMES LimeSuite + HINTS $ENV{LIMESUITE_DIR}/lib PATHS ${LIMESDR_PKG_LIBRARY_DIRS} /usr/lib /usr/local/lib