From 23167652316b4286f2afb4c89b05fe0275146c6b Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Mon, 9 Mar 2015 18:53:44 +0100
Subject: [PATCH] ENH: only print disabled module once

---
 CMake/OTBModuleEnablement.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMake/OTBModuleEnablement.cmake b/CMake/OTBModuleEnablement.cmake
index d10935462c..174f85cc41 100644
--- a/CMake/OTBModuleEnablement.cmake
+++ b/CMake/OTBModuleEnablement.cmake
@@ -145,7 +145,7 @@ endforeach()
 
 # Filter out the ENABLED modules using the OTB_USE_XXX options
 macro(otb_module_disable otb-module _disabled_by)
-  if(NOT ${otb-module}_IS_TEST)
+  if(NOT ${otb-module}_IS_TEST AND ${otb-module}_ENABLED)
     message(STATUS "Disabled ${otb-module} because ${_disabled_by} is OFF")
   endif()
   set(${otb-module}_ENABLED 0)
-- 
GitLab