Simplify conditional linking with libdl

This commit is contained in:
Dmitry Marakasov
2013-10-09 00:46:43 +04:00
parent 24308aec6c
commit 7ee417ab05
8 changed files with 8 additions and 24 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ IF(MINGW)
ENDIF(MINGW)
IF(UNIX)
TARGET_LINK_LIBRARIES(tests "dl")
TARGET_LINK_LIBRARIES(tests "${CMAKE_DL_LIBS}")
TARGET_LINK_LIBRARIES(tests "z")
TARGET_LINK_LIBRARIES(tests "m")
TARGET_LINK_LIBRARIES(tests "rt")