[PATCH] examples: drop legacy json-c support
Sergey Ponomarev
stokito at gmail.com
Tue Jan 19 02:15:53 EST 2021
The cmake logic is wrong (E.G. PKG_CHECK_FOR_MODULES fails unless all modules are found), and the legacy libjson.so name is also used by the other libjson (http://sourceforge.net/projects/libjson/) which provides an incompatible API, so just drop it.
Backported from cbf80de7f4df61960f386cb01a899cf4228d38f3
---
examples/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 04f18b0..1b71d06 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -7,7 +7,7 @@ IF (BUILD_EXAMPLES)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
- FIND_LIBRARY(json NAMES json-c json)
+ FIND_LIBRARY(json NAMES json-c)
ADD_EXECUTABLE(ustream-example ustream-example.c)
TARGET_LINK_LIBRARIES(ustream-example ubox)
--
2.27.0
More information about the openwrt-devel
mailing list