From 6ffaa7c32e9ac3f5195d42f9ff2718537722709a Mon Sep 17 00:00:00 2001 From: Guillaume Pasero <guillaume.pasero@c-s.fr> Date: Mon, 20 Mar 2017 17:25:09 +0100 Subject: [PATCH] BUG: enable also optional dependencies at first pass, they may be filtered in 2nd pass --- CMake/OTBModuleEnablement.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMake/OTBModuleEnablement.cmake b/CMake/OTBModuleEnablement.cmake index 6ef34dc657..a485c18ace 100644 --- a/CMake/OTBModuleEnablement.cmake +++ b/CMake/OTBModuleEnablement.cmake @@ -160,6 +160,9 @@ macro(otb_module_enable otb-module _needed_by) foreach(dep IN LISTS OTB_MODULE_${otb-module}_DEPENDS) otb_module_enable(${dep} ${otb-module}) endforeach() + foreach(dep IN LISTS OTB_MODULE_${otb-module}_OPTIONAL_DEPENDS) + otb_module_enable(${dep} ${otb-module}) + endforeach() if(${otb-module}_TESTED_BY AND (OTB_BUILD_DEFAULT_MODULES OR OTB_BUILD_ALL_MODULES_FOR_TESTS OR Module_${otb-module})) otb_module_enable(${${otb-module}_TESTED_BY} "") endif() -- GitLab