[LEDE-DEV] [PATCH rpcd 1/2] cmake: Find libubox/blobmsg_json.h

John Crispin john at phrozen.org
Sun Dec 11 00:12:05 PST 2016



On 03/12/2016 18:34, Florian Fainelli wrote:
> 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 <f.fainelli at gmail.com>
> ---
>  CMakeLists.txt | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index 49aa4176fbc7..ceb472e94162 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})
>  
> 


Hi,

this fails to apply, could you check/resend please ? patch 2/2 applied fine

	John



More information about the Lede-dev mailing list