Skip to content

Commit

Permalink
Simplify examples/CMakeLists.txt (libcairo linkage)
Browse files Browse the repository at this point in the history
Fl_Cairo_Window is included in fltk::fltk and libcairo is linked
implicitly if FLTK was built with Cairo support.
  • Loading branch information
Albrecht Schlosser committed Mar 17, 2024
1 parent 193c528 commit 036e033
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

############################################################
Expand Down

0 comments on commit 036e033

Please sign in to comment.