Explorar el Código

Display optional project only when configuring top-level project

See #418
Jean-Christophe Fillion-Robin hace 11 años
padre
commit
af3e8d62d8
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      CMake/ctkMacroCheckExternalProjectDependency.cmake

+ 3 - 1
CMake/ctkMacroCheckExternalProjectDependency.cmake

@@ -519,7 +519,9 @@ macro(superbuild_include_dependencies)
         if(_include_project)
           list(APPEND ${SUPERBUILD_TOPLEVEL_PROJECT}_DEPENDENCIES ${possible_proj})
         else()
-          superbuild_message(STATUS "${possible_proj}[OPTIONAL]")
+          if(${SUPERBUILD_TOPLEVEL_PROJECT}_SUPERBUILD)
+            superbuild_message(STATUS "${possible_proj}[OPTIONAL]")
+          endif()
         endif()
       endif()
     endforeach()