summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-02-09 19:41:45 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-02-09 19:41:45 +0100
commit809ceea075d0636263de2db7e35735555c151d67 (patch)
treec3911041decfb7bfc117e7ed6a14aa4afe2a9e8a /test
parentede53b8a50af185c5c421ae73e055ca20930d43f (diff)
Fix Cairo related build issues (missing Cairo lib)
... particularly for shared libs
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 53e9fad7e..a59679faf 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -275,7 +275,11 @@ if(FLTK_BUILD_SHARED_LIBS)
fl_create_example(shape-shared shape.cxx "${GLDEMO_SHARED}")
endif(OPENGL_FOUND)
- fl_create_example(cairo_test-shared cairo_test.cxx "fltk::fltk-shared;cairo")
+ if(FLTK_HAVE_CAIRO)
+ fl_create_example(cairo_test-shared cairo_test.cxx "fltk::fltk-shared;cairo")
+ else()
+ fl_create_example(cairo_test-shared cairo_test.cxx "fltk::fltk-shared")
+ endif()
endif(MSVC) # (not MSVC)