--- tests/CMakeLists.txt.orig	2016-08-24 13:25:41 UTC
+++ tests/CMakeLists.txt
@@ -41,10 +41,8 @@ if(BUILD_TESTS)
 
     
     find_package(Threads)
-    set(TARGET_LINK_LIB ${TARGET_LINK_LIB} ${CMAKE_THREAD_LIBS_INIT} ${TARGET_LINK})
+    set(TARGET_LINK_LIB ${TARGET_LINK_LIB} ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS} ${TARGET_LINK})
 
-    find_library(DL_LIB dl)
-    set(TARGET_LINK_LIB ${TARGET_LINK_LIB} ${DL_LIB})
     find_library(M_LIB m)
     set(TARGET_LINK_LIB ${TARGET_LINK_LIB} ${M_LIB})
 
