libubox: Allow to build against libjson-c > 0.9

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
This commit is contained in:
Helmut Schaa 2013-05-07 15:04:18 +02:00 committed by Felix Fietkau
parent dcf93f3322
commit ecee1a3bea

View 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})