From 3895068aa1d4054153583c3cd39949d72b6c39ca Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 9 Feb 2024 12:38:14 +0100 Subject: 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. --- test/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7f6f6a8bc..0186f07bc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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). -- cgit v1.2.3