From f375ff968977300a696422e2e73f59f57a32125c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 19 Nov 2022 11:55:45 +0100 Subject: [PATCH] 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 a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 2cf147637..2bc33557a 100644 --- a/examples/CMakeLists.txt +++ b/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})