mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
cmake: fix NO_EVENTFD option
This commit is contained in:
parent
ff858bc9dc
commit
c2c75d2295
1 changed files with 6 additions and 6 deletions
|
@ -63,15 +63,15 @@ else()
|
|||
endif()
|
||||
|
||||
# Check OS
|
||||
# Use the switch NO_EVENTFD to deactivate eventfd usage indepentent of availability on OS
|
||||
if(NOT ${NO_EVENTFD} MATCHES "1")
|
||||
check_include_file("sys/eventfd.h" HAS_EVENTFD)
|
||||
else()
|
||||
set(HAS_EVENTFD 0)
|
||||
endif()
|
||||
check_include_file("sys/eventfd.h" HAS_EVENTFD)
|
||||
check_include_file("semaphore.h" HAS_SEMAPHORE)
|
||||
check_include_file("sys/mman.h" HAS_MMAN)
|
||||
|
||||
# Use the switch NO_EVENTFD to deactivate eventfd usage indepentent of availability on OS
|
||||
if(${NO_EVENTFD})
|
||||
set(HAS_EVENTFD OFF)
|
||||
endif()
|
||||
|
||||
# Check packages
|
||||
find_package(PkgConfig REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
|
|
Loading…
Add table
Reference in a new issue