From 4908dfd72a343ee7c35bc55a55ad860052e21fae Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 8 Jan 2026 21:22:03 +0100 Subject: Add CMake option FLTK_OPTION_PEN_SUPPORT (default: ON) This option can be used to disable pen/tablet support if there are build problems on a particular platform or build system (e.g. MinGW) so users can continue to build FLTK 1.5. Users can also choose to disable pen support if they don't need it. --- README.CMake.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.CMake.txt') diff --git a/README.CMake.txt b/README.CMake.txt index 77a404482..7043b13de 100644 --- a/README.CMake.txt +++ b/README.CMake.txt @@ -285,6 +285,16 @@ FLTK_OPTION_OPTIM - default EMPTY "-Wall -Wno-deprecated-declarations". Example: cmake -D FLTK_BUILD_EXAMPLES=on -D FLTK_OPTION_OPTIM="-Wall -Wextra -pedantic" .. +FLTK_OPTION_PEN_SUPPORT - default ON + Pen support is relatively small and should be included by default, but + this option allows to switch it off if not needed. + Note: on some older systems or build platforms (notably "classic" MinGW) + compiling and building pen support may not be possible. As of this writing + (Jan. 2026) we don't use dynamic (CMake) tests to find out whether building + is possible or not. Instead users are encouraged to report build errors and + switch this option off to allow to proceed building FLTK 1.5.0. + Note: this option is WIP and may be removed later w/o further notice. + FLTK_OPTION_PRINT_SUPPORT - default ON When turned off, the Fl_Printer class does nothing and the Fl_PostScript_File_Device class cannot be used, but the FLTK library -- cgit v1.2.3