Skip to content

Commit

Permalink
Merge pull request #791 from Jehops/FreeBSD_no_dl
Browse files Browse the repository at this point in the history
On FreeBSD, do not link libdl
  • Loading branch information
stevenweaver authored May 10, 2018
2 parents 9e9709e + e5d667b commit 51d43bf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,22 @@ endif(NOT ${OPENMP_FOUND})
#-------------------------------------------------------------------------------
set(INSTALL_PREFIX /usr/local CACHE PATH "Installation prefix")
set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX} CACHE INTERNAL "Installation prefix" FORCE)
set(DEFAULT_LIBRARIES dl pthread)
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(DEFAULT_LIBRARIES pthread)
else(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(DEFAULT_LIBRARIES dl pthread)
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")

#-------------------------------------------------------------------------------
# LIBCurl support
#-------------------------------------------------------------------------------
find_package(CURL)
if(${CURL_FOUND} AND NOT APPLE)
set(DEFAULT_LIBRARIES dl pthread crypto curl ssl)
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(DEFAULT_LIBRARIES pthread crypto curl ssl)
else(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(DEFAULT_LIBRARIES dl pthread crypto curl ssl)
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
add_definitions (-D__HYPHYCURL__)
endif(${CURL_FOUND} AND NOT APPLE)

Expand Down

0 comments on commit 51d43bf

Please sign in to comment.