From d7617abb223e6d866c806b5a39d56f31f4a3df05 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 1 Jul 2016 16:04:05 -0700 Subject: [PATCH] cmake: Find libubox/utils.h header file Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for libubox/utils.h. Some external toolchains which do not include standard locations would fail to find the header otherwise. Signed-off-by: Florian Fainelli --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68f50ff..50a9226 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,8 @@ SET(LIBS) IF(USE_LIBUBOX) ADD_DEFINITIONS(-DUSE_LIBUBOX) SET(LIBS ubox) + FIND_PATH(ubox_include_dir libubox/utils.h) + INCLUDE_DIRECTORIES(${ubox_include_dir}) ELSE() SET(SOURCES ${SOURCES} base64.c) ENDIF() -- 2.30.2