Skip to content

Commit b178436

Browse files
committed
Merge pull request #468 from alalek:distrib_fix
2 parents 2395ce2 + 4e28272 commit b178436

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

modules/dnn/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ ocv_add_perf_tests()
2727
# ----------------------------------------------------------------------------
2828
# Download pre-trained models for complex testing on GoogLeNet and AlexNet
2929
# ----------------------------------------------------------------------------
30-
OCV_OPTION(${the_module}_DOWNLOAD_CAFFE_MODELS "Use GoogLeNet Caffe model for testing" ON IF BUILD_TESTS AND PYTHON2_EXECUTABLE AND DEFINED ENV{OPENCV_TEST_DATA_PATH})
31-
if(BUILD_TESTS AND ${the_module}_DOWNLOAD_CAFFE_MODELS)
30+
OCV_OPTION(${the_module}_DOWNLOAD_CAFFE_MODELS "Use GoogLeNet Caffe model for testing" OFF IF BUILD_TESTS AND PYTHON2_EXECUTABLE AND DEFINED ENV{OPENCV_TEST_DATA_PATH})
31+
if(BUILD_TESTS AND PYTHON2_EXECUTABLE AND DEFINED ENV{OPENCV_TEST_DATA_PATH}
32+
AND (DOWNLOAD_EXTERNAL_TEST_DATA OR ${the_module}_DOWNLOAD_CAFFE_MODELS))
3233
add_custom_command( TARGET opencv_test_${name} POST_BUILD
3334
COMMAND ${PYTHON2_EXECUTABLE} download_model.py test_models.json
3435
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts )

modules/xobjdetect/tools/waldboost_detector/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set(name waldboost_detector)
22
set(the_target opencv_${name})
33

4-
set(OPENCV_${the_target}_DEPS opencv_core opencv_imgcodecs opencv_videoio
4+
set(OPENCV_${the_target}_DEPS opencv_core opencv_imgproc opencv_imgcodecs opencv_videoio
55
opencv_highgui opencv_xobjdetect)
66

77
ocv_check_dependencies(${OPENCV_${the_target}_DEPS})

0 commit comments

Comments
 (0)