Fix "cairo_test fails to link due to undefined's" (#902)

Restore "too much optimized" CMake code.

The issue would only be visible if neither FLTK_GRAPHICS_CAIRO nor
FLTK_BACKEND_WAYLAND was active.
This commit is contained in:
Albrecht Schlosser 2024-02-09 12:38:14 +01:00
parent fc6d364057
commit 3895068aa1
1 changed files with 4 additions and 4 deletions

View File

@ -214,11 +214,11 @@ if(OPENGL_FOUND)
endif(OPENGL_FOUND)
# Cairo demo - must also be built w/o Cairo (displays a message box)
# ### if(FLTK_HAVE_CAIRO)
# ### fl_create_example(cairo_test cairo_test.cxx "fltk;cairo")
# ### else()
if(FLTK_HAVE_CAIRO)
fl_create_example(cairo_test cairo_test.cxx "fltk::fltk;cairo")
else()
fl_create_example(cairo_test cairo_test.cxx fltk::fltk)
# ### endif(FLTK_HAVE_CAIRO)
endif(FLTK_HAVE_CAIRO)
# *** EXPERIMENTAL ***
# Build some of the demo programs linked against the shared FLTK lib(s).