Skip to content
Snippets Groups Projects
Commit ba3de11f authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: add minimum version number for ITK 4.5.0 (perhaps 4.4.2 works also)

parent 8afdff41
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,11 @@ mark_as_advanced(OTB_USE_EXTERNAL_ITK)
if(OTB_USE_EXTERNAL_ITK)
find_package(ITK REQUIRED)
if(ITK_FOUND)
#Check version of external ITK
if(${ITK_VERSION} VERSION_LESS "4.5.0")
message(FATAL_ERROR "ITK version >= 4.5.0 is required. Please update your external version or set OTB_USE_EXTERNAL_ITK OFF to use INTERNAL ITK set on OTB/Utilities repository.")
endif()
# This section corresponds to the content of ${ITK_USE_FILE}
# with the exception that include_directories() is removed
# and done in otbIncludeDirectories
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment