FLTK logo

[master] f375ff9 - CMake: fix building examples w/o test programs

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] f375ff9 - CMake: fix building examples w/o test programs "Albrecht Schlosser" Nov 19, 2022  
 
commit f375ff968977300a696422e2e73f59f57a32125c
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Sat Nov 19 11:55:45 2022 +0100
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Sat Nov 19 11:55:45 2022 +0100

    CMake: fix building examples w/o test programs
    
    As reported in fltk.coredev in thread
      "CMAKE build with build examples. On and test OFF fails"
    
    $ cmake .. -D FLTK_BUILD_EXAMPLES=ON -D FLTK_BUILD_TEST=OFF
    
    failed with: Unknown CMake command "FLTK_RUN_FLUID".

 examples/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git examples/CMakeLists.txt examples/CMakeLists.txt
index 2cf1476..2bc3355 100644
--- examples/CMakeLists.txt
+++ examples/CMakeLists.txt
@@ -16,6 +16,7 @@
 ################################################################################
 
 include (../CMake/fl_create_example.cmake)
+include (../CMake/FLTK-Functions.cmake)
 
 set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../bin/examples)
 file (MAKE_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
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'.