Fix possible linker errors by using CMake find_library macro
authorPetr Štetiar <ynezz@true.cz>
Tue, 5 Jun 2018 07:41:25 +0000 (09:41 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 5 Jun 2019 11:10:50 +0000 (13:10 +0200)
commit89bfaa42460696fb3c37c232f69c2afd5c6d909e
tree9a27176084cf6fd3ac08dcd6304549d83b703232
parent569284a119f958154fe076f5bc06b031d59a71cc
Fix possible linker errors by using CMake find_library macro

Fixes following errors while compiling natively on x86:

 cc -fPIC -shared  -o rpcsys.so sys.c.o -lubox -lubus
 ld: cannot find -lubox
 ld: cannot find -lubus

Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt