From 1e1385bc52bafa79dfc563823ad5f7c58584c598 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Thu, 28 Mar 2013 21:59:36 -0600 Subject: [PATCH] Do not link dl if on FreeBSD --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef832bc2..49140416 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,9 +95,9 @@ else() add_definitions(-DCHAISCRIPT_NO_THREADS) endif() -if (CMAKE_HOST_UNIX) +if (CMAKE_HOST_UNIX AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") list(APPEND LIBS "dl") -endif(CMAKE_HOST_UNIX) +endif() list(APPEND LIBS ${READLINE_LIB})