projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e70c6
)
ubox: CMake: fix json-c detection
author
Yegor Yefremov
<yegorslists@googlemail.com>
Mon, 27 Apr 2015 20:13:42 +0000
(22:13 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 10 May 2015 12:14:45 +0000
(14:14 +0200)
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>
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 3522fe48ef04338430b9ab013ef4a95c546302dc..38709ec30826cacf51f4446be7b8d0b88f43276b 100644
(file)
--- 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})