Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
07414aba
Commit
07414aba
authored
Jan 08, 2020
by
Cédric Traizet
Browse files
REFAC: set minimum version of opencv to 3.0.0
parent
651ccd64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/ThirdParty/OpenCV/otb-module-init.cmake
View file @
07414aba
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment