X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=blobdiff_plain;f=CMakeLists.txt;h=ec45c52ece76a10fd99c2079d635905327935f3a;hp=c495bec0f8b67ad700779a204ed6709acbdb8567;hb=248d682e3b3887a535d4ba81fab65f3463373ac8;hpb=b0ac713bef656102c722ab472753c17aa15fcf93 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)