From 7be2859d91cb8c72bd8c84d69a03372088b78a3f Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 1 Jul 2016 16:05:52 -0700 Subject: [PATCH] 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 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.11.0