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 -4
View File
@@ -35,10 +35,7 @@ IF(MINGW)
ENDIF(MINGW)
IF(UNIX)
IF(NOT FREEBSD)
TARGET_LINK_LIBRARIES(ucs "dl")
ENDIF(NOT FREEBSD)
TARGET_LINK_LIBRARIES(ucs "${CMAKE_DL_LIBS}")
TARGET_LINK_LIBRARIES(ucs "z")
TARGET_LINK_LIBRARIES(ucs "m")
TARGET_LINK_LIBRARIES(ucs "rt")