Debian Codegraph @

cmake/kqueue.cmake

raw
1 macro(CHECK_KQUEUE VARIABLE)
2 if(UNIX)
3 if("${VARIABLE}" MATCHES "^${VARIABLE}$")
4 message(STATUS "Check if the system supports kqueue")
5 include(CheckSymbolExists)
6 check_symbol_exists(kqueue "sys/event.h" KQUEUE_PROTOTYPE_EXISTS)
7
8 if(KQUEUE_PROTOTYPE_EXISTS)
9 message(STATUS "Check if the system supports kqueue - yes")
10 set(${VARIABLE} 1 CACHE INTERNAL "Result of CHECK_KQUEUE" FORCE)
11 else(KQUEUE_PROTOTYPE_EXISTS)
12 message(STATUS "Check if the system supports kqueue - no")
13 set(${VARIABLE} "" CACHE INTERNAL "Result of CHECK_KQUEUE" FORCE)
14 endif(KQUEUE_PROTOTYPE_EXISTS)
15 endif("${VARIABLE}" MATCHES "^${VARIABLE}$")
16 endif(UNIX)
17 endmacro(CHECK_KQUEUE)