This is an automated email from the ASF dual-hosted git repository.

marcoabreu pushed a commit to branch devel-arm
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git

commit d612b57fdf7d47a361737bda926ff3ec64c91afc
Author: Pedro Larroy <[email protected]>
AuthorDate: Wed Jun 6 17:28:16 2018 +0000

    [MXNET-523] Fix build with OpenCV 2 (rpi)
---
 example/image-classification/predict-cpp/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/example/image-classification/predict-cpp/CMakeLists.txt 
b/example/image-classification/predict-cpp/CMakeLists.txt
index a2f52b9..c42d191 100644
--- a/example/image-classification/predict-cpp/CMakeLists.txt
+++ b/example/image-classification/predict-cpp/CMakeLists.txt
@@ -1,7 +1,7 @@
 # Check OpenCV
-if(NOT USE_OPENCV OR NOT OpenCV_FOUND)
+if(NOT USE_OPENCV OR NOT OpenCV_FOUND OR OpenCV_VERSION_MAJOR LESS 3)
   message(WARNING "\
-OpenCV should be enabled and found to build image classification example, 
skipping...")
+OpenCV version >= 3 should be enabled and found to build image classification 
example, skipping...")
   return()
 endif()
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to