cmake: Fix cli shared linking against ubox
authorAndre Castro <andre.castro.sw@gmail.com>
Fri, 2 Feb 2018 12:04:44 +0000 (12:04 +0000)
committerJohn Crispin <john@phrozen.org>
Mon, 12 Feb 2018 14:29:46 +0000 (15:29 +0100)
commit4c4d343caa1f1997818f895b9c58b313d2e8a578
tree292b34cc697023f190cda658b37e83e9d480ed5a
parent5beb95da3dbec6db11a6bdfaab7807ee2daf41e6
cmake: Fix cli shared linking against ubox

The 'ubox' library used in 'cli' target is not using the output of the
'find_library' command. This is a problem when the 'ubox' library is not
located on the standard system library locations.

Use the CMake variable 'ubox', output of 'find_library' call that points
to the library found on the system, instead of hardcoding the library's
name to 'ubox'.

Signed-off-by: Andre Castro <andre.castro.sw@gmail.com>
CMakeLists.txt