Permalink
Browse files

Do not link dl if on FreeBSD

  • Loading branch information...
lefticus committed Mar 29, 2013
1 parent ae1221d commit 1e1385bc52bafa79dfc563823ad5f7c58584c598
Showing with 2 additions and 2 deletions.
  1. +2 −2 CMakeLists.txt
View
@@ -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})

0 comments on commit 1e1385b

Please sign in to comment.