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