From: tbaudier Date: Wed, 11 Apr 2018 13:15:39 +0000 (+0200) Subject: Addapt if statement for older cmake X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d48eb16df40d8081b7dfbfc236f36b20938b6d68;p=clitk.git Addapt if statement for older cmake --- diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 747cd52..868a2b6 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -3,9 +3,9 @@ find_package(ITK) if(ITK_FOUND) include("${ITK_USE_FILE}") - if(ITK_VERSION VERSION_GREATER_EQUAL 5.0.0) + if(ITK_VERSION VERSION_GREATER 5.0.0 OR ITK_VERSION VERSION_EQUAL 5.0.0) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") - endif(ITK_VERSION VERSION_GREATER_EQUAL 5.0.0) + endif(ITK_VERSION VERSION_GREATER 5.0.0 OR ITK_VERSION VERSION_EQUAL 5.0.0) else(ITK_FOUND) message(FATAL_ERROR "Cannot build without ITK. Please set ITK_DIR.") endif(ITK_FOUND)