From fee3f26c311945818a788b8b9feee6004635d7b6 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Mon, 24 Aug 2020 23:34:41 +0800 Subject: [PATCH] Fix build fail on openwrt Signed-off-by: Jianhui Zhao --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b98c8b4..50f568d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)