From 0724e059cfa56615afb0a50c27ce9885faa54ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Neum=C3=BCller?= Date: Wed, 11 Sep 2013 17:13:01 +0200 Subject: [PATCH] Build: Link dl on Linux. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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)