diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7384f06..f0db56f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -245,4 +245,8 @@ target_link_libraries(jd ${ZLIB_LIBRARY} ${Boost_LIBRARIES}) +if (CMAKE_SYSTEM_NAME MATCHES "Linux") + target_link_libraries(jd dl) +endif() + install(TARGETS jd RUNTIME DESTINATION bin)