FreeBSD hasn't libdl, functions included in libc

This commit is contained in:
Windoze 2013-02-27 14:01:09 +08:00
parent 1f1656a6c2
commit 88f7bffc4f

View File

@ -116,7 +116,9 @@ else()
endif() endif()
if (CMAKE_HOST_UNIX) if (CMAKE_HOST_UNIX)
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
list(APPEND LIBS "dl") list(APPEND LIBS "dl")
endif(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
if (MULTITHREAD_SUPPORT_ENABLED) if (MULTITHREAD_SUPPORT_ENABLED)
list(APPEND LIBS "pthread") list(APPEND LIBS "pthread")