projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmake: Fix find_library for ubusd and examples/server
[project/ubus.git]
/
examples
/
CMakeLists.txt
diff --git
a/examples/CMakeLists.txt
b/examples/CMakeLists.txt
index 0279f6e66b50cc4bc0207bf9dfc6f19b83548190..81f9997529505235a363bfed9094c01963b92e1c 100644
(file)
--- a/
examples/CMakeLists.txt
+++ b/
examples/CMakeLists.txt
@@
-5,8
+5,8
@@
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
IF (BUILD_EXAMPLES)
ADD_EXECUTABLE(server server.c count.c)
IF (BUILD_EXAMPLES)
ADD_EXECUTABLE(server server.c count.c)
- TARGET_LINK_LIBRARIES(server ubus
ubox blobmsg_json
)
+ TARGET_LINK_LIBRARIES(server ubus
${ubox_library} ${blob_library} ${json}
)
ADD_EXECUTABLE(client client.c count.c)
ADD_EXECUTABLE(client client.c count.c)
- TARGET_LINK_LIBRARIES(client ubus
ubox
)
+ TARGET_LINK_LIBRARIES(client ubus
${ubox_library}
)
ENDIF()
ENDIF()