From 88f7bffc4f3359c4772559c20844b01ab25399c7 Mon Sep 17 00:00:00 2001 From: Windoze Date: Wed, 27 Feb 2013 14:01:09 +0800 Subject: [PATCH] FreeBSD hasn't libdl, functions included in libc --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdd53f9..6f3415b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,7 +116,9 @@ else() endif() if (CMAKE_HOST_UNIX) - list(APPEND LIBS "dl") + if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + list(APPEND LIBS "dl") + endif(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") if (MULTITHREAD_SUPPORT_ENABLED) list(APPEND LIBS "pthread")