message(WARNING "features2d: Boost descriptor implementation is not available due to missing data (download failed: https://github.com/opencv/opencv_contrib/issues/1301)")
message(WARNING "features2d: VGG descriptor implementation is not available due to missing data (download failed: https://github.com/opencv/opencv_contrib/issues/1301)")
endif()
ocv_module_include_directories("${DOWNLOAD_DIR}")
if(boost_status OR vgg_status)
ocv_module_include_directories("${DOWNLOAD_DIR}")
endif()
endif()
if(TARGET opencv_test_${name})
ocv_target_include_directories(opencv_test_${name}"${OpenCV_SOURCE_DIR}/modules")# use common files from features2d tests
CV_Error(Error::StsNotImplemented,"The OpenCV xfeatures2d binaries is built without downloaded Boost decriptor features: https://github.com/opencv/opencv_contrib/issues/1301");
CV_Error(Error::StsNotImplemented,"The OpenCV xfeatures2d binaries is built without downloaded VGG decriptor features: https://github.com/opencv/opencv_contrib/issues/1301");