Skip to content

Commit 1fe6f48

Browse files
ffainellisbyx
authored andcommitted
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>
1 parent 8de9fa8 commit 1fe6f48

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ if(${L_LEVEL})
1111
add_definitions(-DL_LEVEL=${L_LEVEL})
1212
endif(${L_LEVEL})
1313

14+
FIND_PATH(ubox_include_dir libubox/list.h)
15+
INCLUDE_DIRECTORIES(${ubox_include_dir})
16+
1417
if(WITH_LIBUBOX)
1518
add_definitions(-Wextra)
1619
set(PLATFORM_LINK ${PLATFORM_LINK} ubox)

0 commit comments

Comments
 (0)