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".
This commit is contained in:
Albrecht Schlosser 2022-11-19 11:55:45 +01:00
parent 82bee7fa33
commit f375ff9689

View File

@ -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})