]> Creatis software - clitk.git/commitdiff
Addapt if statement for older cmake
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 11 Apr 2018 13:15:39 +0000 (15:15 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 11 Apr 2018 13:15:39 +0000 (15:15 +0200)
cmake/dependencies.cmake

index 747cd52a0486a59a5d8597117adb767d82004368..868a2b6831078691a9e13dd4cb6e7c025b8e9274 100644 (file)
@@ -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)