summaryrefslogtreecommitdiffhomepage
path: root/src/external/glfw/CMake/modules/FindEpollShim.cmake
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2018-05-11 01:41:24 +0200
committerGitHub <[email protected]>2018-05-11 01:41:24 +0200
commit281dbf5d83a777df6aecc4a456b277b23f42ba88 (patch)
tree778ff14eae7a0d20df5e652fffd16366cf2313ba /src/external/glfw/CMake/modules/FindEpollShim.cmake
parentb8ca51fd01a68b9b6040f8c3c631eedefd7d7735 (diff)
parenta0f9c2b1eb4fbc25472a3f164c7af349fcc0562e (diff)
downloadraylib-281dbf5d83a777df6aecc4a456b277b23f42ba88.tar.gz
raylib-281dbf5d83a777df6aecc4a456b277b23f42ba88.zip
Merge pull request #538 from a3f/master
CMake+CI: Add Wayland configuration
Diffstat (limited to 'src/external/glfw/CMake/modules/FindEpollShim.cmake')
-rw-r--r--src/external/glfw/CMake/modules/FindEpollShim.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/external/glfw/CMake/modules/FindEpollShim.cmake b/src/external/glfw/CMake/modules/FindEpollShim.cmake
new file mode 100644
index 00000000..2facb419
--- /dev/null
+++ b/src/external/glfw/CMake/modules/FindEpollShim.cmake
@@ -0,0 +1,17 @@
+# Find EpollShim
+# Once done, this will define
+#
+# EPOLLSHIM_FOUND - System has EpollShim
+# EPOLLSHIM_INCLUDE_DIRS - The EpollShim include directories
+# EPOLLSHIM_LIBRARIES - The libraries needed to use EpollShim
+
+find_path(EPOLLSHIM_INCLUDE_DIRS NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim)
+find_library(EPOLLSHIM_LIBRARIES NAMES epoll-shim libepoll-shim HINTS /usr/local/lib)
+
+if (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES)
+ set(EPOLLSHIM_FOUND TRUE)
+endif (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(EPOLLSHIM DEFAULT_MSG EPOLLSHIM_LIBRARIES EPOLLSHIM_INCLUDE_DIRS)
+mark_as_advanced(EPOLLSHIM_INCLUDE_DIRS EPOLLSHIM_LIBRARIES)