diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/CMakeLists.txt | 6 |
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) |
