Commit 25e43a46 authored by Julien Michel's avatar Julien Michel

BUG: OTB_USE_EXTERNAL_FLTK option will not appear, even if FLTK is not found...

BUG: OTB_USE_EXTERNAL_FLTK option will not appear, even if FLTK is not found on the system. It seems that CMAKE_DEPENDENT_OPTION is not behaving like expected.
parent 56cd4803
......@@ -289,8 +289,13 @@ IF(OTB_USE_VISU_GUI)
#OPTION(OTB_USE_EXTERNAL_FLTK "Use an outside build of FLTK." OFF)
FIND_PACKAGE(FLTK)
CMAKE_DEPENDENT_OPTION(OTB_USE_EXTERNAL_FLTK "Use an outside build of FLTK." ON
"FLTK_FOUND" OFF)
# If an external fltk is found, do not provide the internal fltk choice
IF(NOT FLTK_FOUND)
OPTION(OTB_USE_EXTERNAL_FLTK "Use an outside build of FLTK." OFF)
ELSE(NOT FLTK_FOUND)
SET(OTB_USE_EXTERNAL_FLTK ON)
ENDIF(NOT FLTK_FOUND)
# IF(FLTK_FOUND)
# SET(OTB_USE_EXTERNAL_FLTK ON)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment