AA: uhttpd: fix build error with the new json-c (#13690)
[openwrt/svn-archive/archive.git] / package / uhttpd / patches / 100-json_c.patch
1 --- a/CMakeLists.txt
2 +++ b/CMakeLists.txt
3 @@ -62,10 +62,11 @@ ELSE()
4 MESSAGE(FATAL_ERROR "Invalid TLS provider option, use none|openssl|cyassl")
5 ENDIF()
6
7 +FIND_LIBRARY(json json-c json)
8 IF(UBUS_SUPPORT)
9 ADD_DEFINITIONS(-DHAVE_UBUS)
10 ADD_LIBRARY(uhttpd_ubus MODULE uhttpd-ubus.c)
11 - TARGET_LINK_LIBRARIES(uhttpd_ubus ubox ubus json blobmsg_json)
12 + TARGET_LINK_LIBRARIES(uhttpd_ubus ubox ubus ${json} blobmsg_json)
13 SET(PLUGINS ${PLUGINS} uhttpd_ubus)
14 ENDIF()
15