summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-18 09:10:22 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-23 06:17:31 +0100
commit0ba051994a5b6a928db90a439461a37386e4d8e1 (patch)
treed38e4c6b7511f82daec3e076328e338ee682268c /CMake
parent4dcced5b29ec3c26faccfd264909cbebd5ad4f44 (diff)
Have OPTION_USE_WAYLAND / --enable-wayland set to ON by default
Diffstat (limited to 'CMake')
-rw-r--r--CMake/options.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index cf4914882..0536bd2d8 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -194,7 +194,9 @@ set (HAVE_LIBPNG 1)
if (UNIX)
option (OPTION_CREATE_LINKS "create backwards compatibility links" OFF)
list (APPEND FLTK_LDLIBS -lm)
- option (OPTION_USE_WAYLAND "support Wayland and X11 backends" OFF)
+ if (NOT APPLE)
+ option (OPTION_USE_WAYLAND "support both Wayland and X11 backends" ON)
+ endif (NOT APPLE)
if (OPTION_USE_WAYLAND)
pkg_check_modules(WLDCLIENT wayland-client)
pkg_check_modules(WLDCURSOR wayland-cursor)
@@ -203,9 +205,13 @@ if (UNIX)
pkg_check_modules(DBUS dbus-1)
if (NOT(DBUS_FOUND AND WLDCLIENT_FOUND AND WLDCURSOR_FOUND AND WLDPROTO_FOUND AND XKBCOMMON_FOUND))
message (STATUS "Not all software modules 'wayland-client wayland-cursor wayland-protocols xkbcommon dbus-1' are present")
- message (STATUS "Consequently, building for the Wayland backend is not possible.")
- message (FATAL_ERROR "*** Aborting ***")
+ message (STATUS "Consequently, OPTION_USE_WAYLAND is set to OFF.")
+ unset (OPTION_USE_WAYLAND CACHE)
+ set (OPTION_USE_WAYLAND 0)
endif (NOT(DBUS_FOUND AND WLDCLIENT_FOUND AND WLDCURSOR_FOUND AND WLDPROTO_FOUND AND XKBCOMMON_FOUND))
+ endif (OPTION_USE_WAYLAND)
+
+ if (OPTION_USE_WAYLAND)
option (OPTION_WAYLAND_ONLY "support Wayland backend only" OFF)
set (FLTK_USE_WAYLAND 1)
if (NOT OPTION_WAYLAND_ONLY)