build error when libsvm is disabled
Description
build fails when libsvm, opencv OFF and testing ON
....
CMakeFiles/otbSupervisedTestDriver.dir/otbLabelMapClassifier.cxx.o: In function `otb::LibSVMMachineLearningModel<double, unsigned short>::Train()':
/home/rashad/projects/otb/src/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx:(.text._ZN3otb26LibSVMMachineLearningModelIdtE5TrainEv[_ZN3otb26LibSVMMachineLearningModelIdtE5TrainEv]+0x53): undefined reference to `svm_train'
CMakeFiles/otbSupervisedTestDriver.dir/otbLabelMapClassifier.cxx.o: In function `otb::LibSVMMachineLearningModel<double, unsigned short>::Save(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)':
/home/rashad/projects/otb/src/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx:(.text._ZN3otb26LibSVMMachineLearningModelIdtE4SaveERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_[_ZN3otb26LibSVMMachineLearningModelIdtE4SaveERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_]+0x164): undefined reference to `svm_save_model'
CMakeFiles/otbSupervisedTestDriver.dir/otbLabelMapClassifier.cxx.o: In function `otb::LibSVMMachineLearningModel<double, unsigned short>::Load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)':
/home/rashad/projects/otb/src/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx:(.text._ZN3otb26LibSVMMachineLearningModelIdtE4LoadERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_[_ZN3otb26LibSVMMachineLearningModelIdtE4LoadERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_]+0x161): undefined reference to `svm_load_model'
CMakeFiles/otbSupervisedTestDriver.dir/otbLabelMapClassifier.cxx.o: In function `otb::LibSVMMachineLearningModel<double, unsigned short>::DoPredict(itk::VariableLengthVector<double> const&, double*) const':
/home/rashad/projects/otb/src/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx:(.text._ZNK3otb26LibSVMMachineLearningModelIdtE9DoPredictERKN3itk20VariableLengthVectorIdEEPd[_ZNK3otb26LibSVMMachineLearningModelIdtE9DoPredictERKN3itk20VariableLengthVectorIdEEPd]+0x6a): undefined reference to `svm_get_svm_type'
/home/rashad/projects/otb/src/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx:(.text._ZNK3otb26LibSVMMachineLearningModelIdtE9DoPredictERKN3itk20VariableLengthVectorIdEEPd[_ZNK3otb26LibSVMMachineLearningModelIdtE9DoPredictERKN3itk20VariableLengthVectorIdEEPd]+0x961): undefined reference to `svm_get_nr_class'
/home/rashad/projects/otb/src/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx:(.text._ZNK3otb26LibSVMMachineLearningModelIdtE9DoPredictERKN3itk20VariableLengthVectorIdEEPd[_ZNK3otb26LibSVMMachineLearningModelIdtE9DoPredictERKN3itk20VariableLengthVectorIdEEPd]+0x9af): undefined reference to `svm_predict_probability'
/home/rashad/projects/otb/src/Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx:(.text._ZNK3otb26LibSVMMachineLearningModelIdtE9DoPredictERKN3itk20VariableLengthVectorIdEEPd[_ZNK3otb26LibSVMMachineLearningModelIdtE9DoPredictERKN3itk20VariableLengthVectorIdEEPd]+0xb3b): undefined reference to `svm_predict'
....
Steps to reproduce
cmake -DOTB_USE_LIBSVM=OFF -DOTB_USE_OPENCV=OFF -DBUILD_TESTING=ON && make OTBSupervised-all -j128
(wait for above link error)
Configuration information
OS, OTB version or tag, information related to build (binaries, superbuild, system libs ...)