Unverified Commit 15188611 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[BugFix] fix build issue on mac OS (#4175)

* [BugFix] fix build issue on mac OS

* refine
parent cb39dbfa
...@@ -124,10 +124,12 @@ endif(USE_AVX) ...@@ -124,10 +124,12 @@ endif(USE_AVX)
if ((NOT MSVC) AND USE_EPOLL) if ((NOT MSVC) AND USE_EPOLL)
INCLUDE(CheckIncludeFile) INCLUDE(CheckIncludeFile)
check_include_file("sys/epoll.h" USE_EPOLL) check_include_file("sys/epoll.h" EPOLL_AVAILABLE)
if (USE_EPOLL) if (EPOLL_AVAILABLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_EPOLL") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_EPOLL")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_EPOLL") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_EPOLL")
else()
message(WARNING "EPOLL is not available on this platform...")
endif() endif()
endif () endif ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment