From 126fb8f8e069677520e20e610959bfa3fd5ab22a Mon Sep 17 00:00:00 2001 From: Rashad Kanavath <rashad.kanavath@c-s.fr> Date: Tue, 24 Nov 2015 10:37:38 +0100 Subject: [PATCH] COMP: const definition with better if defined guard --- .../Supervised/test/otbMachineLearningRegressionTests.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/Learning/Supervised/test/otbMachineLearningRegressionTests.cxx b/Modules/Learning/Supervised/test/otbMachineLearningRegressionTests.cxx index f5478972c4..31e97c745b 100644 --- a/Modules/Learning/Supervised/test/otbMachineLearningRegressionTests.cxx +++ b/Modules/Learning/Supervised/test/otbMachineLearningRegressionTests.cxx @@ -20,6 +20,10 @@ #include "itkMersenneTwisterRandomVariateGenerator.h" +#if defined(OTB_USE_OPENCV) || defined(OTB_USE_LIBSVM) +const double epsilon = 0.1; +#endif + #ifdef OTB_USE_OPENCV #include "otbNeuralNetworkMachineLearningModel.h" #include "otbSVMMachineLearningModel.h" @@ -31,7 +35,6 @@ #endif #ifdef OTB_USE_LIBSVM -const double epsilon = 0.1; #include "otbLibSVMMachineLearningModel.h" #endif -- GitLab