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