Skip to content

Commit

Permalink
CMake patches for FreeBSD (#1989)
Browse files Browse the repository at this point in the history
* Switch FreeBSD to poll

* Link against dl and rt on FreeBSD
  • Loading branch information
jspricke authored and aleks-f committed Nov 9, 2017
1 parent f1ebbc9 commit 5d2dae5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Foundation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ if(ANDROID)
set(SYSLIBS ${SYSLIBS} log)
endif(ANDROID)

if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(SYSLIBS ${SYSLIBS} dl rt)
endif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")

# TODO: Why is this here?
add_definitions( -DPCRE_STATIC)

Expand Down
2 changes: 2 additions & 0 deletions cmake/DefinePlatformSpecifc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ else (CYGWIN)
elseif(${CMAKE_SYSTEM} MATCHES "SunOS")
add_definitions(-m64)
set(SYSLIBS pthread dl rt)
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
add_definitions( -D_XOPEN_SOURCE=500 -DPOCO_HAVE_FD_POLL)
else ()
add_definitions(-D_XOPEN_SOURCE=500 -DPOCO_HAVE_FD_EPOLL)
set(SYSLIBS pthread dl rt)
Expand Down

0 comments on commit 5d2dae5

Please sign in to comment.