Fix build fail on openwrt

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main
Jianhui Zhao 2020-08-24 23:34:41 +08:00
parent 281f4a81e1
commit fee3f26c31
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ include_directories(
set(EXTRA_LIBS ${LIBEV_LIBRARY} m)
include(CheckLibraryExists)
check_library_exists(dl dlopen "" HAVE_DLOPEN)
if(HAVE_DLOPEN)
list(APPEND EXTRA_LIBS dl)