diff mbox series

examples: drop legacy json-c support

Message ID 20210119071553.17488-1-stokito@gmail.com
State New
Headers show
Series examples: drop legacy json-c support | expand

Commit Message

Sergey Ponomarev Jan. 19, 2021, 7:15 a.m. UTC
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 mbox series

Patch

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)