-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb5d05b
commit 9566009
Showing
9 changed files
with
310 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
macro(CHECK_EPOLL VARIABLE) | ||
if(UNIX) | ||
if("${VARIABLE}" MATCHES "^${VARIABLE}$") | ||
message(STATUS "Check if the system supports epoll") | ||
include(CheckSymbolExists) | ||
check_symbol_exists(epoll_create "sys/epoll.h" EPOLL_PROTOTYPE_EXISTS) | ||
|
||
if(EPOLL_PROTOTYPE_EXISTS) | ||
message(STATUS "Check if the system supports epoll - yes") | ||
set(${VARIABLE} 1 CACHE INTERNAL "Result of CHECK_EPOLL" FORCE) | ||
else(EPOLL_PROTOTYPE_EXISTS) | ||
message(STATUS "Check if the system supports epoll - no") | ||
set(${VARIABLE} "" CACHE INTERNAL "Result of CHECK_EPOLL" FORCE) | ||
endif(EPOLL_PROTOTYPE_EXISTS) | ||
endif("${VARIABLE}" MATCHES "^${VARIABLE}$") | ||
endif(UNIX) | ||
endmacro(CHECK_EPOLL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
macro(CHECK_KQUEUE VARIABLE) | ||
if(UNIX) | ||
if("${VARIABLE}" MATCHES "^${VARIABLE}$") | ||
message(STATUS "Check if the system supports kqueue") | ||
include(CheckSymbolExists) | ||
check_symbol_exists(kqueue "sys/event.h" KQUEUE_PROTOTYPE_EXISTS) | ||
|
||
if(KQUEUE_PROTOTYPE_EXISTS) | ||
message(STATUS "Check if the system supports kqueue - yes") | ||
set(${VARIABLE} 1 CACHE INTERNAL "Result of CHECK_KQUEUE" FORCE) | ||
else(KQUEUE_PROTOTYPE_EXISTS) | ||
message(STATUS "Check if the system supports kqueue - no") | ||
set(${VARIABLE} "" CACHE INTERNAL "Result of CHECK_KQUEUE" FORCE) | ||
endif(KQUEUE_PROTOTYPE_EXISTS) | ||
endif("${VARIABLE}" MATCHES "^${VARIABLE}$") | ||
endif(UNIX) | ||
endmacro(CHECK_KQUEUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.