diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-03-15 09:43:35 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-03-15 12:21:38 +0100 |
| commit | 82bd0b66522dbdfcfe6274157bb2eaedd3c8051e (patch) | |
| tree | 7a2f06f9713cf40cc151dd816f464357c304948b /CMake/options.cmake | |
| parent | 26f5b38a0113be817d13193387913580b5996d77 (diff) | |
Have FLTK use libdecor at version > 0.2.2
- it's no longer necessary to take care of the change in the layout of "struct libdecor"
between versions ≤ 0.2.2 and > 0.2.2 of libdecor
- version > 0.2.2 contains MR131, that is, it defines LIBDECOR_WINDOW_STATE_RESIZING
so the hack to emulate it is no longer necessary
- CMake option FLTK_USE_SYSTEM_LIBDECOR now requires libdecor version > 0.2.2
to be activated, otherwise the bundled libdecor is used
- what will be the libdecor version after 0.2.2 (0.2.3? 0.3.0?) is not known as of today
Diffstat (limited to 'CMake/options.cmake')
| -rw-r--r-- | CMake/options.cmake | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake index 3f7369641..f4adee1a0 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -297,7 +297,7 @@ if(UNIX) endif() unset(FLTK_GRAPHICS_CAIRO CACHE) set(FLTK_GRAPHICS_CAIRO TRUE CACHE BOOL "all drawing to X11 windows uses Cairo") - option(FLTK_USE_SYSTEM_LIBDECOR "use libdecor from the system" ON) + option(FLTK_USE_SYSTEM_LIBDECOR "use libdecor from the system" OFF) set(USE_SYSTEM_LIBDECOR 1) unset(FLTK_USE_XRENDER CACHE) unset(FLTK_USE_XINERAMA CACHE) @@ -333,9 +333,9 @@ if(UNIX) unset(FLTK_USE_PANGO CACHE) set(FLTK_USE_PANGO TRUE CACHE BOOL "use lib Pango") if(FLTK_USE_SYSTEM_LIBDECOR) - pkg_check_modules(SYSTEM_LIBDECOR libdecor-0>=0.2.0 QUIET) + pkg_check_modules(SYSTEM_LIBDECOR libdecor-0>0.2.2 QUIET) if(NOT SYSTEM_LIBDECOR_FOUND) - message(STATUS "Warning: system libdecor doesn't satisfy version >= 0.2.0,") + message(STATUS "Warning: system libdecor doesn't satisfy version > 0.2.2,") message(STATUS " using bundled libdecor library instead.") set(USE_SYSTEM_LIBDECOR 0) else() @@ -355,10 +355,6 @@ if(UNIX) set(FLTK_USE_LIBDECOR_GTK ON) else() option(FLTK_USE_LIBDECOR_GTK "Allow to use libdecor's GTK plugin" ON) - # Temporarily, while built-in and system struct libdecor differ. - # Later, the version of the system libdecor will be required to have same - # struct libdecor as the built-in libdecor. - set(CMAKE_ENABLE_EXPORTS 1) endif(USE_SYSTEM_LIBDECOR) if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD") |
