Files
Felix Fietkau 63b7155ce0 AA: uhttpd: fix build error with the new json-c (#13690)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36924
2013-06-12 10:16:47 +00:00

16 lines
469 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,10 +62,11 @@ ELSE()
MESSAGE(FATAL_ERROR "Invalid TLS provider option, use none|openssl|cyassl")
ENDIF()
+FIND_LIBRARY(json json-c json)
IF(UBUS_SUPPORT)
ADD_DEFINITIONS(-DHAVE_UBUS)
ADD_LIBRARY(uhttpd_ubus MODULE uhttpd-ubus.c)
- TARGET_LINK_LIBRARIES(uhttpd_ubus ubox ubus json blobmsg_json)
+ TARGET_LINK_LIBRARIES(uhttpd_ubus ubox ubus ${json} blobmsg_json)
SET(PLUGINS ${PLUGINS} uhttpd_ubus)
ENDIF()