|
|
|
@ -31,6 +31,24 @@ if(CCACHE_PROGRAM)
|
|
|
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
|
|
|
|
# check if we have the (saner) emulation of epoll here
|
|
|
|
|
# it's basically linux epoll but with a sane method of
|
|
|
|
|
# dealing with closed file handles that still exist in the
|
|
|
|
|
# epoll set
|
|
|
|
|
#
|
|
|
|
|
# Note that the zombie of Oracle Solaris 2.11.x will NOT have
|
|
|
|
|
# this, the header check is the only method we have to distinguish
|
|
|
|
|
# them. -rick the svr4 guy
|
|
|
|
|
INCLUDE(CheckIncludeFiles)
|
|
|
|
|
CHECK_INCLUDE_FILES(sys/epoll.h SOLARIS_HAVE_EPOLL)
|
|
|
|
|
if (SOLARIS_HAVE_EPOLL)
|
|
|
|
|
message("Using fast emulation of Linux epoll(5) on Solaris.")
|
|
|
|
|
else()
|
|
|
|
|
message("Falling back to poll(2) based event loop.")
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
ENABLE_LANGUAGE(RC)
|
|
|
|
|