From 3cac366777fb95fffd9521c3a78cfb9e2961afa4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 1 Sep 2013 22:12:19 +0200 Subject: [PATCH] Link json-c --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ac4643..e9f1586 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,10 @@ IF(APPLE) ENDIF() ADD_EXECUTABLE(luci-rpcd main.c exec.c session.c file.c uci.c iwinfo.c luci2.c plugin.c) -TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus uci iwinfo blobmsg_json) + +FIND_LIBRARY(json NAMES json-c json) + +TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus uci iwinfo blobmsg_json ${json}) SET(CMAKE_INSTALL_PREFIX /usr) -- 2.11.0