ubus/examples
Florian Fainelli 053be7df87 cmake: Fix find_library for ubusd and examples/server
Both ubusd and cli TARGET_LINK_LIBRARIES reference ${json} which is
obtained via find_library(), but since the find_library() is searched
after the TARGET_LINK_LIBRARIES for ubusd, ubusd always gets an empty
${json} variable.

examples/server also links against libjson-c, but we were not setting
TARGET_LINK_LIBRARIES accordingly, so do that too with ${json} appended.

This was causing linking errors for ubusd and then examples/server using
an external toolchain (stbgcc-4.8-1.x).

Fixes: 9f52d1769b ("cli: use the new json-c library name")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2016-07-01 15:12:28 +02:00
..
client.c ubus: Fix memleak in examples/client in case of failure 2015-05-08 12:06:39 +02:00
CMakeLists.txt cmake: Fix find_library for ubusd and examples/server 2016-07-01 15:12:28 +02:00
count.c ubus: add count test to validate large message sizes 2014-07-03 12:47:11 +02:00
count.h ubus: add count test to validate large message sizes 2014-07-03 12:47:11 +02:00
server.c ubus: Fix issues reported by static code analysis tool Klocwork 2015-04-20 15:43:19 +02:00