diff --git a/SuperBuild/CMakeLists.txt b/SuperBuild/CMakeLists.txt index 514783bbd114f63208d67541ae5e43e8defef18f..5a3e78257680e4bd19f5b721154dd25f5387f0d5 100644 --- a/SuperBuild/CMakeLists.txt +++ b/SuperBuild/CMakeLists.txt @@ -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)