From 0b8f4b5e6c1f7750f2eabd51089628be059e26f1 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 20 Aug 2018 00:56:16 -0700 Subject: [PATCH] Add libdl to wpiutil cmake build (#1288) This is required for dlopen, which is required by libuv. --- wpiutil/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpiutil/CMakeLists.txt b/wpiutil/CMakeLists.txt index d7facb816d..4f44ec6831 100644 --- a/wpiutil/CMakeLists.txt +++ b/wpiutil/CMakeLists.txt @@ -91,7 +91,7 @@ else() endif() endif() -target_link_libraries(wpiutil Threads::Threads) +target_link_libraries(wpiutil Threads::Threads ${CMAKE_DL_LIBS}) target_include_directories(wpiutil PUBLIC $ $)