diff options
author | Yegor Yefremov <yegorslists@googlemail.com> | 2015-04-27 23:13:42 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-10 15:14:45 +0300 |
commit | 791a361ad1b08fa56e554654109122b828657a2b (patch) | |
tree | 684b7144366db01a08544bc2c4b7302f18de0646 /CMakeLists.txt | |
parent | a8e70c6d361967a23977417fb7d6cf56234f8b81 (diff) |
ubox: CMake: fix json-c detection
Use PKG_SEARCH_MODULE() to detect json-c library,
otherwise the search fails, if both json-c and json
are not present in pkg-config database.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3522fe4..38709ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations) OPTION(BUILD_LUA "build Lua plugin" ON) INCLUDE(FindPkgConfig) -PKG_CHECK_MODULES(JSONC json-c) +PKG_SEARCH_MODULE(JSONC json-c) IF(JSONC_FOUND) ADD_DEFINITIONS(-DJSONC) INCLUDE_DIRECTORIES(${JSONC_INCLUDE_DIRS}) |