FLTK logo

[master] 7b70d2c - Fix handle_events demo build w/o OpenGL

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] 7b70d2c - Fix handle_events demo build w/o OpenGL "Albrecht Schlosser" Apr 22, 2021  
 
commit 7b70d2c90dd4cab9189942e26445203257c80fe7
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Thu Apr 22 12:34:20 2021 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Thu Apr 22 12:34:49 2021 +0200

    Fix handle_events demo build w/o OpenGL
    
    test/handle_events.cxx can optionally be built with an Fl_Gl_Window,
      but this doesn't work if OpenGL support (libfltk_gl) is disabled.

 test/CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git test/CMakeLists.txt test/CMakeLists.txt
index 5128e08..7341de8 100644
--- test/CMakeLists.txt
+++ test/CMakeLists.txt
@@ -77,7 +77,11 @@ CREATE_EXAMPLE (file_chooser file_chooser.cxx "fltk_images;fltk")
 CREATE_EXAMPLE (fltk-versions fltk-versions.cxx fltk)
 CREATE_EXAMPLE (fonts fonts.cxx fltk)
 CREATE_EXAMPLE (forms forms.cxx "fltk_forms;fltk")
-CREATE_EXAMPLE (handle_events handle_events.cxx "fltk_gl;fltk") # opt. Fl_Gl_Window
+if (OPENGL_FOUND)
+  CREATE_EXAMPLE (handle_events handle_events.cxx "fltk_gl;fltk") # opt. Fl_Gl_Window
+else()
+  CREATE_EXAMPLE (handle_events handle_events.cxx fltk) # w/o Fl_Gl_Window
+endif()
 CREATE_EXAMPLE (hello hello.cxx fltk)
 CREATE_EXAMPLE (help_dialog help_dialog.cxx "fltk_images;fltk")
 CREATE_EXAMPLE (icon icon.cxx fltk)
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'.