CMake: set FLTK_OPTION_STD effectively "always on"

Temporarily done by setting the internal variable FLTK_USE_STD to 1.
This affects FL/fl_config.h where FLTK_USE_STD will always be 1.

Source code that checks this variable should be fixed soon.
This commit is contained in:
Albrecht Schlosser 2025-03-08 19:08:04 +01:00
parent 6a12e5a609
commit 0c4d2be71b

View File

@ -387,12 +387,17 @@ if(WIN32)
endif(WIN32) endif(WIN32)
####################################################################### #######################################################################
option(FLTK_OPTION_STD "allow FLTK to use some std:: features" OFF) # FLTK_OPTION_STD: temporary option in 1.4, always on in 1.5.
if(FLTK_OPTION_STD) # FIXME: remove this obsolete option entirely ...
set(FLTK_USE_STD 1) # after the source code has been fixed.
else() #######################################################################
set(FLTK_USE_STD 0)
endif() option(FLTK_OPTION_STD
"Use std:: (obsolete since 1.5.0, ignored: always ON)"
ON)
set(FLTK_USE_STD 1) # always ON since FLTK 1.5.0, option will be
# removed as soon as the code has been updated
####################################################################### #######################################################################