FLTK logo

[master] 036e033 - Simplify examples/CMakeLists.txt (libcairo linkage)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 036e033 - Simplify examples/CMakeLists.txt (libcairo linkage) "Albrecht Schlosser" 19:17 Mar 16  
 
commit 036e0334dc9190c37766153bd8c74ce31dedfcf2
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Sun Mar 17 03:16:19 2024 +0100
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Sun Mar 17 03:16:19 2024 +0100

    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.

 examples/CMakeLists.txt | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git examples/CMakeLists.txt examples/CMakeLists.txt
index 1ce11a1..3e44d29 100644
--- examples/CMakeLists.txt
+++ 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)
 
 ############################################################
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.