]> Creatis software - crea.git/commitdiff
#3374 creaBug New Normal - vtk8itk5wx3-mingw64
authorEduardo DAVILA <davila@localhost.localdomain>
Thu, 26 Mar 2020 14:33:52 +0000 (15:33 +0100)
committerEduardo DAVILA <davila@localhost.localdomain>
Thu, 26 Mar 2020 14:33:52 +0000 (15:33 +0100)
cmake/CREAMacro_FindAndUseLibraries.cmake

index 9af88a16b989113eb383999e3746f3039d1b8232..ed5ea3b5e9538c5801791c29b59e5ba215fa9a24 100644 (file)
@@ -96,6 +96,7 @@ ENDIF(USE_KWWIDGETS)
 #
 
 #-----------------------------------------------------------------------------
+
 IF(USE_ITK)
   IF(NOT ITK_FOUND)
     # Search ITK
@@ -110,14 +111,11 @@ IF(USE_ITK)
       INCLUDE(${ITK_USE_FILE})
       CREA_DEFINE( USE_ITK )
       CREA_DEFINE( _USE_ITK_ )
-         If (${ITK_VERSION_MAJOR} MATCHES "4")
-          MESSAGE ( STATUS "* Version = ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}")
-               SET(ITK_LIBRARIES
-               ${ITK_LIBRARIES}) 
-                MESSAGE ( STATUS "${ITK_LIBRARIES}")
+               If (${ITK_VERSION_MAJOR} MATCHES "4"  OR  ${ITK_VERSION_MAJOR} MATCHES "5"  )
+                       MESSAGE ( STATUS "* Version = ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}")
+                       SET(ITK_LIBRARIES ${ITK_LIBRARIES}) 
                ELSEIF()
-               SET(ITK_LIBRARIES
-                       ITKCommon ITKIO ITKBasicFilters ITKAlgorithms)
+                       SET(ITK_LIBRARIES ITKCommon ITKIO ITKBasicFilters ITKAlgorithms)
                ENDIF()
       MARK_AS_ADVANCED(ITK_DIR)
     ELSE(ITK_FOUND)