From: Florian Fainelli Date: Fri, 1 Jul 2016 23:05:52 +0000 (-0700) Subject: cmake: Find libubox/uloop.h X-Git-Url: http://git.openwrt.org/?p=project%2Fprocd.git;a=commitdiff_plain;h=7be2859d91cb8c72bd8c84d69a03372088b78a3f cmake: Find libubox/uloop.h Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for libubox/uloop.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 74959e0..b66fad1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,9 @@ INSTALL(TARGETS procd RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR} ) +FIND_PATH(ubox_include_dir libubox/uloop.h) +INCLUDE_DIRECTORIES(${ubox_include_dir}) + IF(DISABLE_INIT) ADD_DEFINITIONS(-DDISABLE_INIT) ELSE()