cli: use the new json-c library name
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
dd3afa517d
commit
9f52d1769b
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue