mirror of
https://git.openwrt.org/project/usign.git
synced 2025-05-07 19:06:11 +08:00
cmake: Find libubox/utils.h header file
Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for libubox/utils.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>
This commit is contained in:
parent
3f3aeceb15
commit
d7617abb22
@ -9,6 +9,8 @@ SET(LIBS)
|
||||
IF(USE_LIBUBOX)
|
||||
ADD_DEFINITIONS(-DUSE_LIBUBOX)
|
||||
SET(LIBS ubox)
|
||||
FIND_PATH(ubox_include_dir libubox/utils.h)
|
||||
INCLUDE_DIRECTORIES(${ubox_include_dir})
|
||||
ELSE()
|
||||
SET(SOURCES ${SOURCES} base64.c)
|
||||
ENDIF()
|
||||
|
Loading…
x
Reference in New Issue
Block a user