Skip to content
Permalink
Browse files

Cmake: Find libubox/list.h

Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for
libubox/list.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>
  • Loading branch information
ffainelli authored and sbyx committed Feb 12, 2017
1 parent 8de9fa8 commit 1fe6f48f8a5067685cbcf6427baf1b3e8b889da1
Showing with 3 additions and 0 deletions.
  1. +3 −0 CMakeLists.txt
@@ -11,6 +11,9 @@ if(${L_LEVEL})
add_definitions(-DL_LEVEL=${L_LEVEL})
endif(${L_LEVEL})

FIND_PATH(ubox_include_dir libubox/list.h)
INCLUDE_DIRECTORIES(${ubox_include_dir})

if(WITH_LIBUBOX)
add_definitions(-Wextra)
set(PLATFORM_LINK ${PLATFORM_LINK} ubox)

0 comments on commit 1fe6f48

Please sign in to comment.
You can’t perform that action at this time.