libubox: Allow to build against libjson-c > 0.9
authorHelmut Schaa <helmut.schaa@googlemail.com>
Tue, 7 May 2013 13:04:18 +0000 (15:04 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 7 May 2013 13:53:36 +0000 (15:53 +0200)
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
CMakeLists.txt

index c574bf72305e95a3cfd2ba1a208a72f69d5f3413..015b8bd64f21a03a3b93dddd9f3fd6d6c1fe0b3e 100644 (file)
@@ -13,7 +13,7 @@ IF(APPLE)
 ENDIF()
 
 INCLUDE(FindPkgConfig)
-PKG_CHECK_MODULES(JSONC json)
+PKG_CHECK_MODULES(JSONC json-c json)
 IF(JSONC_FOUND)
   ADD_DEFINITIONS(-DJSONC)
   INCLUDE_DIRECTORIES(${JSONC_INCLUDE_DIRS})