From 496c7dd84b3d861f24d741b71744afd955b1ea38 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 13 Dec 2022 10:16:23 +0100 Subject: Fix for "Build on FreeBSD fails: linux/input.h not found" (#584) --- CMake/options.cmake | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3