diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-05-17 13:11:49 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-05-17 13:11:49 -0400 |
commit | 5ed533a94331ea2d849f900ee20f8932d742e9b5 (patch) | |
tree | ee9a1ffafa93162484829ca42f6f61a997ca0f90 /CMake | |
parent | Drop epoll dependency (diff) | |
download | sway-5ed533a94331ea2d849f900ee20f8932d742e9b5.tar.gz sway-5ed533a94331ea2d849f900ee20f8932d742e9b5.tar.zst sway-5ed533a94331ea2d849f900ee20f8932d742e9b5.zip |
Revert "Drop epoll dependency"
This reverts commit 91f2bf81bf89699d43083f3d3a27805ba5e395a9.
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/FindEpollShim.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMake/FindEpollShim.cmake b/CMake/FindEpollShim.cmake new file mode 100644 index 00000000..b6bed142 --- /dev/null +++ b/CMake/FindEpollShim.cmake | |||
@@ -0,0 +1,17 @@ | |||
1 | # - Find EpollShim | ||
2 | # Once done, this will define | ||
3 | # | ||
4 | # EPOLLSHIM_FOUND - System has EpollShim | ||
5 | # EPOLLSHIM_INCLUDE_DIRS - The EpollShim include directories | ||
6 | # EPOLLSHIM_LIBRARIES - The libraries needed to use EpollShim | ||
7 | |||
8 | find_path(EPOLLSHIM_INCLUDE_DIRS NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim) | ||
9 | find_library(EPOLLSHIM_LIBRARIES NAMES epoll-shim libepoll-shim HINTS /usr/local/lib) | ||
10 | |||
11 | if (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES) | ||
12 | set(EPOLLSHIM_FOUND TRUE) | ||
13 | endif (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES) | ||
14 | |||
15 | include(FindPackageHandleStandardArgs) | ||
16 | find_package_handle_standard_args(EPOLLSHIM DEFAULT_MSG EPOLLSHIM_LIBRARIES EPOLLSHIM_INCLUDE_DIRS) | ||
17 | mark_as_advanced(EPOLLSHIM_INCLUDE_DIRS EPOLLSHIM_LIBRARIES) | ||