Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-07-03 14:28:22 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-07-03 14:53:13 +0400
commitfd3a33b7ed6e5a6142d35a0ab91fb90f6bbcdc34 (patch)
tree2687643f3bbd6a8ee3220c188334e021b5e21bbb /examples
parentb10cd1c0f6f1f1f9f5de66b89ce52a05ec6b5dca (diff)
examples: fix linking with json-c
Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 51b97df..2126d29 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -11,8 +11,10 @@ ENDIF()
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
+FIND_LIBRARY(json NAMES json-c json)
+
ADD_EXECUTABLE(blobmsg-example blobmsg-example.c)
-TARGET_LINK_LIBRARIES(blobmsg-example ubox blobmsg_json json)
+TARGET_LINK_LIBRARIES(blobmsg-example ubox blobmsg_json ${json})
ADD_EXECUTABLE(ustream-example ustream-example.c)
TARGET_LINK_LIBRARIES(ustream-example ubox)