cmake: link with dl

This commit is contained in:
Yishuai Li 2024-01-22 16:34:00 +08:00 committed by GitHub
parent e1e13503b2
commit 33d77b0591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 )