cli: use the new json-c library name

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-05-29 12:53:17 +02:00
parent dd3afa517d
commit 9f52d1769b

View file

@ -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) ADD_EXECUTABLE(ubusd ubusd.c ubusd_id.c ubusd_obj.c ubusd_proto.c ubusd_event.c)
TARGET_LINK_LIBRARIES(ubusd ubox) TARGET_LINK_LIBRARIES(ubusd ubox)
find_library(json NAMES json-c json)
ADD_EXECUTABLE(cli cli.c) ADD_EXECUTABLE(cli cli.c)
SET_TARGET_PROPERTIES(cli PROPERTIES OUTPUT_NAME ubus) 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(lua)
ADD_SUBDIRECTORY(examples) ADD_SUBDIRECTORY(examples)