diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-13 10:16:23 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-13 10:16:23 +0100 |
| commit | 496c7dd84b3d861f24d741b71744afd955b1ea38 (patch) | |
| tree | 27442cc2b59a26f5e24c8e63a558ac10c774f50f /CMake | |
| parent | 79e26cf19ab4d47846518a86f2ad69f5b5d6117d (diff) | |
Fix for "Build on FreeBSD fails: linux/input.h not found" (#584)
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/options.cmake | 7 |
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) |
