diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-02-09 12:38:14 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-02-09 12:38:14 +0100 |
| commit | 3895068aa1d4054153583c3cd39949d72b6c39ca (patch) | |
| tree | a05f0dbe085614e66b04656f436a11dfce17b24e /test | |
| parent | fc6d36405718e19946ba0b4c96dcbbb39b456eee (diff) | |
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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/CMakeLists.txt | 8 |
1 files 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). |
