From f72748bb4563c07322846ae92cc9c02c0b448e5b Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:43:32 +0100 Subject: Wayland: make OPTION_USE_SYSTEM_LIBDECOR ON by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit makes the default FLTK build setting use libdecor as packaged in Linux when the build system contains packages libdecor-0-dev and libdecor-0-plugin-1-gtk in version ≥ 0.2.0. Otherwise, FLTK uses the bundled version of libdecor. This includes situations where package libdecor-0-dev is present in an earlier version. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 21ef377d7..d2ae79f14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -281,6 +281,11 @@ if (UNIX AND NOT (APPLE AND NOT OPTION_APPLE_X11)) if (OPTION_USE_WAYLAND) message (STATUS "Use Wayland : Yes (if available at run-time)") + if (OPTION_USE_SYSTEM_LIBDECOR) + message (STATUS "Use system libdecor : Yes") + else () + message (STATUS "Use system libdecor : No") + endif () else () message (STATUS "Use Wayland : No (therefore, X11 is used)") endif () -- cgit v1.2.3