From: Florian Fainelli Date: Fri, 1 Jul 2016 23:04:05 +0000 (-0700) Subject: cmake: Find libubox/utils.h header file X-Git-Url: http://git.openwrt.org/?p=project%2Fusign.git;a=commitdiff_plain;h=d7617abb223e6d866c806b5a39d56f31f4a3df05 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 --- 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()