Browse Source

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 <f.fainelli@gmail.com>
Florian Fainelli 7 years ago
parent
commit
8fd57dd387
1 changed files with 2 additions and 0 deletions
  1. 2 0
      upgraded/CMakeLists.txt

+ 2 - 0
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)
 set(CMAKE_EXE_LINKER_FLAGS "-static -fPIC")
 set(CMAKE_FIND_LIBRARY_SUFFIXES .a)