Commit 7cfd08fd authored by Antoine Regimbeau's avatar Antoine Regimbeau

BUG: make OTB_USE_QWT a dependent option of OTB_USE_QWT

parent 2c8f3307
......@@ -23,12 +23,6 @@ INCLUDE_ONCE_MACRO(QWT)
SETUP_SUPERBUILD(QWT)
# declare dependencies
if ( NOT OTB_USE_QT )
message( "As Qt is a dependency of Qwt, it will be activate in the "
"project that will behave as if OTB_USE_QT is set to ON.\n"
"To disable Qt and Qwt use OTB_USE_QWT=OFF and OTB_USE_QT=OFF.")
endif()
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM(QWT QT5)
set(QWT_SB_MAKE_PROGRAM ${CMAKE_MAKE_PROGRAM})
......
......@@ -329,7 +329,8 @@ else()
endif()
option(OTB_USE_SHARK "Enable module Shark in OTB" ON)
option(OTB_USE_QWT "Enable module QWT in OTB" ON)
include (CMakeDependentOption)
CMAKE_DEPENDENT_OPTION( OTB_USE_QWT "Enable module QWT in OTB" ON "OTB_USE_QT" OFF)
option(OTB_USE_GSL "Enable module GSL in OTB" ON)
option(OTB_USE_MPI "Enable MPI in OTB" OFF)
......
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