From: Florian Fainelli Date: Sat, 3 Dec 2016 17:34:44 +0000 (-0800) Subject: cmake: Find libubox/blobmsg_json.h X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=commitdiff_plain;h=0577cfc1acdbaf30c31090e75045ba58d6dd8a78 cmake: Find libubox/blobmsg_json.h Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for blobmsg_json.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/CMakeLists.txt b/CMakeLists.txt index 49aa417..ceb472e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,9 @@ ENDIF() FIND_PATH(ubus_include_dir libubus.h) INCLUDE_DIRECTORIES(${ubus_include_dir}) +FIND_PATH(ubox_include_dir libubox/blobmsg_json.h) +INCLUDE_DIRECTORIES(${ubox_include_dir}) + ADD_EXECUTABLE(rpcd main.c exec.c session.c uci.c plugin.c) TARGET_LINK_LIBRARIES(rpcd ubox ubus uci dl blobmsg_json ${json} ${crypt})