From: Felix Fietkau Date: Wed, 29 May 2013 10:53:17 +0000 (+0200) Subject: cli: use the new json-c library name X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9f52d1769b762;p=oweals%2Fubus.git cli: use the new json-c library name Signed-off-by: Felix Fietkau --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 22027ec..e3b150b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,9 +23,10 @@ TARGET_LINK_LIBRARIES(ubus ubox) ADD_EXECUTABLE(ubusd ubusd.c ubusd_id.c ubusd_obj.c ubusd_proto.c ubusd_event.c) TARGET_LINK_LIBRARIES(ubusd ubox) +find_library(json NAMES json-c json) ADD_EXECUTABLE(cli cli.c) SET_TARGET_PROPERTIES(cli PROPERTIES OUTPUT_NAME ubus) -TARGET_LINK_LIBRARIES(cli ubus ubox blobmsg_json json) +TARGET_LINK_LIBRARIES(cli ubus ubox blobmsg_json ${json}) ADD_SUBDIRECTORY(lua) ADD_SUBDIRECTORY(examples)