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:
authorFelix Fietkau <nbd@openwrt.org>2013-02-10 18:32:45 +0400
committerFelix Fietkau <nbd@openwrt.org>2013-02-10 18:32:45 +0400
commit9a3519536b7497a1423fbfa7e8981212a30f1793 (patch)
tree6a8f67c1980aa9ec47067935c2fcd365abe625a8 /CMakeLists.txt
parent95fde87029b91460f79391488234c67d2e32fb7a (diff)
blobmsg_json: prefer to link against libjson-c over libjson (the new library name in git versions of json-c)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6bcec18..ba7ccaa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,13 +35,13 @@ INSTALL(TARGETS ubox
ADD_SUBDIRECTORY(lua)
-find_library(json json)
+find_library(json NAMES json-c json)
IF(EXISTS ${json})
ADD_LIBRARY(blobmsg_json SHARED blobmsg_json.c)
- TARGET_LINK_LIBRARIES(blobmsg_json ubox json)
+ TARGET_LINK_LIBRARIES(blobmsg_json ubox ${json})
ADD_EXECUTABLE(jshn jshn.c)
- TARGET_LINK_LIBRARIES(jshn json)
+ TARGET_LINK_LIBRARIES(jshn ${json})
INSTALL(TARGETS blobmsg_json jshn
LIBRARY DESTINATION lib