Add support for Wayland on FreeBSD and other OSes

This commit is contained in:
Greg V
2018-03-19 22:08:22 +03:00
committed by linkmauve
parent 2884915000
commit 0a3c4f5d80
5 changed files with 45 additions and 10 deletions
+8
View File
@@ -280,6 +280,14 @@ if (_GLFW_WAYLAND)
include(CheckIncludeFiles)
check_include_files(xkbcommon/xkbcommon-compose.h HAVE_XKBCOMMON_COMPOSE_H)
if (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux"))
find_package(EpollShim)
if (EPOLLSHIM_FOUND)
list(APPEND glfw_INCLUDE_DIRS "${EPOLLSHIM_INCLUDE_DIRS}")
list(APPEND glfw_LIBRARIES "${EPOLLSHIM_LIBRARIES}")
endif()
endif()
endif()
#--------------------------------------------------------------------