From d48eb16df40d8081b7dfbfc236f36b20938b6d68 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Wed, 11 Apr 2018 15:15:39 +0200 Subject: [PATCH] Addapt if statement for older cmake --- cmake/dependencies.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.1