diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-12-20 16:56:29 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-12-20 17:33:37 +0100 |
| commit | 5df5daf78e135e0c8371012ffe56df5cae357755 (patch) | |
| tree | afd619b32d1f35b949f07b9dd35f0184400a1f93 /CMake | |
| parent | 9023648e6c182a4142894b3e6c1b309b699b0629 (diff) | |
Make the 'Forms' compatibility library 'fltk_forms' optional
This library is no longer needed in FLTK itself. There is only one
demo program (test/forms.cxx) that uses it if it is built. The demo
program displays a message if fltk_forms is not available.
The default is 'enabled' for backwards compatibility but this may
be changed to 'disabled' in a future version.
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/options.cmake | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake index 8e8ee02e4..0a774b09b 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -396,13 +396,21 @@ option (OPTION_BUILD_SHARED_LIBS ) ####################################################################### -option (OPTION_PRINT_SUPPORT "allow print support" ON) -option (OPTION_FILESYSTEM_SUPPORT "allow file system support" ON) -option (FLTK_BUILD_FLUID "Build FLUID" ON) -option (FLTK_BUILD_FLTK_OPTIONS "Build fltk-options" ON) -option (FLTK_BUILD_TEST "Build test/demo programs" ON) -option (FLTK_BUILD_EXAMPLES "Build example programs" OFF) +option (OPTION_PRINT_SUPPORT "allow print support" ON) +option (OPTION_FILESYSTEM_SUPPORT "allow file system support" ON) + +option (FLTK_BUILD_FORMS "Build forms compatibility library" ON) +option (FLTK_BUILD_FLUID "Build FLUID" ON) +option (FLTK_BUILD_FLTK_OPTIONS "Build fltk-options" ON) +option (FLTK_BUILD_TEST "Build test/demo programs" ON) +option (FLTK_BUILD_EXAMPLES "Build example programs" OFF) + +if (FLTK_BUILD_FORMS) + set (FLTK_HAVE_FORMS 1) +else () + set (FLTK_HAVE_FORMS 0) +endif () if (DEFINED OPTION_BUILD_EXAMPLES) message (WARNING |
