Commit 23167652 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: only print disabled module once

parent 0887d40e
......@@ -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)
......
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