Skip to content

Commit

Permalink
Update dependencies requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ocommowi authored Nov 12, 2019
1 parent 0967a24 commit 2e8a047
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Anima/cmake/AnimaDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ find_package(ITK REQUIRED)
set(_ITKVersionString "${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}" )
math(EXPR _ITKVersionNum "${ITK_VERSION_MAJOR}*100*100 + ${ITK_VERSION_MINOR}*100 + ${ITK_VERSION_PATCH}")

if(_ITKVersionNum LESS 41300)
message(SEND_ERROR "The ITK version you want to use (${_ITKVersionString}) is not supported by this project. Please use a more recent version of ITK. The minimum required version is 4.13.0")
if(_ITKVersionNum LESS 50000)
message(SEND_ERROR "The ITK version you want to use (${_ITKVersionString}) is not supported by this project. Please use a more recent version of ITK. The minimum required version is 5.0.0")
else()
include(${ITK_USE_FILE})
endif()
Expand Down Expand Up @@ -42,8 +42,8 @@ if (BUILD_MODULE_REGISTRATION OR BUILD_MODULE_DIFFUSION OR BUILD_MODULE_MATHS)
if(USE_VTK)
find_package(VTK REQUIRED COMPONENTS vtkCommonCore vtkFiltersCore vtkIOXML vtkIOLegacy vtksys)

if (VTK_VERSION_MAJOR LESS 6)
message(SEND_ERROR "VTK has to be version 6 or higher.")
if (VTK_VERSION_MAJOR LESS 7)
message(SEND_ERROR "VTK has to be version 7 or higher.")
endif()

include(${VTK_USE_FILE})
Expand Down

0 comments on commit 2e8a047

Please sign in to comment.