From: Florian Fainelli Date: Wed, 31 May 2017 21:00:34 +0000 (-0700) Subject: upgraded: cmake: Find and include uloop.h X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e5ff8caf39be160d48a51c067e3e2c1271c572ee;p=oweals%2Fprocd.git upgraded: cmake: Find and include 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/upgraded/CMakeLists.txt b/upgraded/CMakeLists.txt index 00d8ce5..fd7d6bb 100644 --- a/upgraded/CMakeLists.txt +++ b/upgraded/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 2.6) PROJECT(upgraded C) +FIND_PATH(ubox_include_dir libubox/uloop.h) +INCLUDE_DIRECTORIES(${ubox_include_dir}) ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) ADD_EXECUTABLE(upgraded upgraded.c ../watchdog.c) TARGET_LINK_LIBRARIES(upgraded ubox)