From 33d77b05912dbd5dd38236f77d2c99ede3bed3ff Mon Sep 17 00:00:00 2001 From: Yishuai Li Date: Mon, 22 Jan 2024 16:34:00 +0800 Subject: [PATCH] cmake: link with dl --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e69cbc6..471150e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,7 +134,7 @@ add_custom_target( run-tests # compiling and linking it all together add_executable( lsyncd ${LSYNCD_SRC} ) -target_link_libraries( lsyncd ${LUA_LIBRARIES} ) +target_link_libraries( lsyncd ${LUA_LIBRARIES} ${CMAKE_DL_LIBS} ) install( TARGETS lsyncd RUNTIME DESTINATION bin ) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/man/lsyncd.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT man )