diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-03-17 03:16:19 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-03-17 03:16:19 +0100 |
| commit | 036e0334dc9190c37766153bd8c74ce31dedfcf2 (patch) | |
| tree | b0cc377e2a145213cf1e0533e58dc49297980b6a /examples | |
| parent | 193c5285cde3fa642c39c601dee973e313faa3c2 (diff) | |
Simplify examples/CMakeLists.txt (libcairo linkage)
Fl_Cairo_Window is included in fltk::fltk and libcairo is linked
implicitly if FLTK was built with Cairo support.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/CMakeLists.txt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 1ce11a116..3e44d29fa 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -136,14 +136,8 @@ endforeach(src) # create example programs requiring cairo ############################################################ -if(FLTK_HAVE_CAIRO) - set(cairo_libs "fltk::fltk;cairo") -else() - set(cairo_libs "fltk::fltk") -endif() - foreach(src ${CAIRO_SOURCES}) - fl_create_example(${src} ${src}.cxx "${cairo_libs}") + fl_create_example(${src} ${src}.cxx fltk::fltk) endforeach(src) ############################################################ |
