summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMake/options.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index 094d44402..25c5a181c 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -267,6 +267,13 @@ if (UNIX)
option (OPTION_ALLOW_GTK_PLUGIN "Allow to use libdecor's GTK plugin" ON)
+ if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD")
+ CHECK_INCLUDE_FILE (linux/input.h LINUX_INPUT_H)
+ if (NOT LINUX_INPUT_H)
+ message (FATAL_ERROR "Required include file 'linux/input.h' is missing. Please install package 'evdev-proto'")
+ endif (NOT LINUX_INPUT_H)
+ endif (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD")
+
endif (OPTION_USE_WAYLAND)
endif (UNIX)