Commit 07414aba authored by Cédric Traizet's avatar Cédric Traizet
Browse files

REFAC: set minimum version of opencv to 3.0.0

parent 651ccd64
......@@ -21,9 +21,8 @@
find_package ( OpenCV REQUIRED )
mark_as_advanced( OpenCV_DIR )
if("${OpenCV_VERSION}" VERSION_LESS "2.4.0")
message(WARNING "The OpenCV version detected (${OpenCV_VERSION}) is older than 2.4.0, "
"it may not be fully compatible with OTB")
if("${OpenCV_VERSION}" VERSION_LESS "3.0.0")
message(ERROR " The OpenCV version detected (${OpenCV_VERSION}) is older than the minimum supported version (3.0.0) ")
endif()
if(OpenCV_VERSION_MAJOR EQUAL 4)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment