cli: use the new json-c library name
authorFelix Fietkau <nbd@openwrt.org>
Wed, 29 May 2013 10:53:17 +0000 (12:53 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 29 May 2013 10:53:22 +0000 (12:53 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
CMakeLists.txt

index 22027ec3b9b6f1822e7dcce8455ad002bacbc923..e3b150b7310eef35a022a02a742b9e8459e1a902 100644 (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)
 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)