From: Florian Fainelli Date: Mon, 11 Jul 2016 22:34:37 +0000 (-0700) Subject: cmake: Search for libjson-c X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61fdf7e9b1cc3c67cb9775571f17ea12df4c6287;p=oweals%2Fusbmode.git cmake: Search for libjson-c Since we use libblobmsg_json which uses libjson-c internally, make sure we find this library. Signed-off-by: Florian Fainelli --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 95d757f..28394e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,8 +14,9 @@ find_package(PkgConfig) pkg_check_modules(LIBUSB1 REQUIRED libusb-1.0) ADD_DEFINITIONS(${LIBUSB1_CFLAGS}) FIND_LIBRARY(libusb NAMES usb-1.0 HINTS ${LIBUSB1_LIBDIR}) +FIND_LIBRARY(json NAMES json-c json) -SET(LIBS ubox blobmsg_json ${libusb}) +SET(LIBS ubox blobmsg_json ${libusb} ${json}) IF(DEBUG) ADD_DEFINITIONS(-DDEBUG -g3)