From 701f0d6413275a0c017ab356c56a946c17076b43 Mon Sep 17 00:00:00 2001 From: Luis Ibanez Date: Fri, 29 Mar 2002 18:07:01 -0500 Subject: [PATCH] ENH: HAS_FLTK variable added. FLTK_WRAP_UI command made INTERNAL. --- Modules/FindFLTK.cmake | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/Modules/FindFLTK.cmake b/Modules/FindFLTK.cmake index 6aa4b147a..812ec423a 100644 --- a/Modules/FindFLTK.cmake +++ b/Modules/FindFLTK.cmake @@ -22,11 +22,21 @@ ${path} ) IF (FLTK_FLUID_EXE) - SET ( FLTK_WRAP_UI 1 CACHE BOOL "Can we honour the FLTK_WRAP_UI command" ) + SET ( FLTK_WRAP_UI 1 CACHE INTERNAL "Can we honour the FLTK_WRAP_UI command" ) ENDIF (FLTK_FLUID_EXE) -MARK_AS_ADVANCED( - FLTK_INCLUDE_PATH - FLTK_LIBRARY - FLTK_FLUID_EXE -) \ No newline at end of file + +# +# Set HAS_FLTK +# This is the final flag that will be checked by +# other code that requires FLTK for compile/run. +# +IF(FLTK_FLUID_EXE) + IF(FLTK_INCLUDE_PATH) + IF(FLTK_LIBRARY) + SET (HAS_FLTK 1 CACHE INTERNAL "FLTK library, headers and Fluid are available") + ENDIF(FLTK_LIBRARY) + ENDIF(FLTK_INCLUDE_PATH) +ENDIF(FLTK_FLUID_EXE) + +