[cmake] move epoll detection to platform
This commit is contained in:
parent
7ac01c5cbd
commit
5583fec47b
@ -202,11 +202,6 @@ if (EXPORT_ALL_SYMBOLS)
|
||||
add_definitions(-DEXPORT_ALL_SYMBOLS)
|
||||
endif(EXPORT_ALL_SYMBOLS)
|
||||
|
||||
if(FREEBSD)
|
||||
find_path(EPOLLSHIM_INCLUDE_DIR NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim)
|
||||
find_library(EPOLLSHIM_LIBS NAMES epoll-shim libepoll-shim HINTS /usr/local/lib)
|
||||
endif()
|
||||
|
||||
# Compiler-specific flags
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "i686")
|
||||
|
@ -100,4 +100,9 @@ if (USE_PLATFORM_DEFAULT)
|
||||
set(WINPR_TIMEZONE_FILE "/var/db/zoneinfo")
|
||||
endif()
|
||||
add_definitions("-DWINPR_TIMEZONE_FILE=\"${WINPR_TIMEZONE_FILE}\"")
|
||||
|
||||
if(FREEBSD)
|
||||
find_path(EPOLLSHIM_INCLUDE_DIR NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim)
|
||||
find_library(EPOLLSHIM_LIBS NAMES epoll-shim libepoll-shim HINTS /usr/local/lib)
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user