Skip to content

Commit

Permalink
fix build issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhett-Ying committed Jun 25, 2022
1 parent fc2072f commit 388a468
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ if(USE_AVX)
endif(USE_LIBXSMM)
endif(USE_AVX)

if ((NOT MSVC) AND USE_EPOLL)
check_include_file("sys/epoll.h" USE_EPOLL)
if (NOT MSVC)
if (USE_EPOLL)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_EPOLL")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_EPOLL")
check_include_file("sys/epoll.h" USE_EPOLL)
if (USE_EPOLL)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_EPOLL")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_EPOLL")
endif()
endif()
endif ()

Expand Down

0 comments on commit 388a468

Please sign in to comment.