Skip to content

Commit

Permalink
libdl doesn't exist on FreeBSD
Browse files Browse the repository at this point in the history
* libflusspferd/CMakeLists.txt

  libdl is sought independently of FLUSSPFERD_HAVE_POSIX,
  and only if CMAKE_SYSTEM_NAME is not "FreeBSD".

  this check should examine whether libdl is needed instead
  of branching on system name; i'll leave that for someone
  more knowledgable of CMake.
  • Loading branch information
roman-neuhauser authored and ruediger committed May 8, 2010
1 parent add1fe9 commit 63f3fda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libflusspferd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ endif()
## libdl ####################################################################

if(FLUSSPFERD_HAVE_POSIX)
find_package(DL REQUIRED)
add_definitions(-DFLUSSPFERD_HAVE_POSIX)
endif()

if(NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
find_package(DL REQUIRED)
include_directories(${DL_INCLUDE_DIR})
endif()

Expand Down

0 comments on commit 63f3fda

Please sign in to comment.