projects
/
oweals
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd27336
)
detect the right library name for json-c
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 12 Mar 2013 13:37:35 +0000
(14:37 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 12 Mar 2013 13:37:40 +0000
(14:37 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index cd22fc76fe5df2dae56ab35de2a091f1a66283d3..ec45c52ece76a10fd99c2079d635905327935f3a 100644
(file)
--- 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)