X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=CMakeLists.txt;h=ec45c52ece76a10fd99c2079d635905327935f3a;hb=9d83bd3c524c4bbeb8e6583155dd7df9e8a1b5d3;hp=c495bec0f8b67ad700779a204ed6709acbdb8567;hpb=b0ac713bef656102c722ab472753c17aa15fcf93;p=project%2Fuhttpd.git diff --git a/CMakeLists.txt b/CMakeLists.txt index c495bec..ec45c52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,8 +68,9 @@ ENDIF() IF(UBUS_SUPPORT) SET(PLUGINS ${PLUGINS} uhttpd_ubus) ADD_DEFINITIONS(-DHAVE_UBUS) - ADD_LIBRARY(uhttpd_ubus MODULE ubus.c ubus-session.c) - TARGET_LINK_LIBRARIES(uhttpd_ubus ubus ubox blobmsg_json json) + ADD_LIBRARY(uhttpd_ubus MODULE ubus.c) + FIND_LIBRARY(libjson NAMES json-c json) + TARGET_LINK_LIBRARIES(uhttpd_ubus ubus ubox blobmsg_json ${libjson}) ENDIF() IF(PLUGINS)