diff --git a/Modules/Applications/AppHyperspectral/otb-module.cmake b/Modules/Applications/AppHyperspectral/otb-module.cmake
index da611161c313edae6cf9db86e6593220b0bd9fbc..98d9cd527de07cb5eba319c767f5dde5accf2b2e 100644
--- a/Modules/Applications/AppHyperspectral/otb-module.cmake
+++ b/Modules/Applications/AppHyperspectral/otb-module.cmake
@@ -27,7 +27,6 @@ otb_module(OTBAppHyperspectral
     OTBEndmembersExtraction
     OTBUnmixing
     OTBAnomalyDetection
-    OTBFunctor
   TEST_DEPENDS
     OTBTestKernel
     OTBCommandLine
diff --git a/Modules/Hyperspectral/AnomalyDetection/otb-module.cmake b/Modules/Hyperspectral/AnomalyDetection/otb-module.cmake
index f2cc3ce4f93feccf25c424f2920ab95c759f7d14..a04146e4a2e6021a6702769eee6649286dc2bed6 100644
--- a/Modules/Hyperspectral/AnomalyDetection/otb-module.cmake
+++ b/Modules/Hyperspectral/AnomalyDetection/otb-module.cmake
@@ -28,7 +28,7 @@ detection which have shown success for multispectral and hyperspectral images
 otb_module(OTBAnomalyDetection
   DEPENDS
     OTBITK
-
+    OTBFunctor
   TEST_DEPENDS
     OTBTestKernel
     OTBImageIO