From: Vivien Delmon Date: Fri, 21 Oct 2011 11:55:30 +0000 (+0200) Subject: Check VTK_VERSION with a valid syntax X-Git-Tag: v1.3.0~179^2^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8e9359b40795e2431230101a7f7a3fcbce1be347;p=clitk.git Check VTK_VERSION with a valid syntax --- diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index e9bb7f1..1f2b07a 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -348,11 +348,11 @@ IF (CLITK_BUILD_TOOLS) WRAP_GGO(clitkMeshToBinaryImage_GGO_C clitkMeshToBinaryImage.ggo) ADD_EXECUTABLE(clitkMeshToBinaryImage clitkMeshToBinaryImage.cxx ${clitkMeshToBinaryImage_GGO_C}) - IF(VTK_MAJOR_VERSION > 5 OR (VTK_MAJOR_VERSION == 5 AND VTK_MINOR_VERION >= 8)) - TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon ${ITK_LIBRARIES} ${VTK_LIBRARIES}) - ELSE(VTK_MAJOR_VERSION > 5 OR (VTK_MAJOR_VERSION == 5 AND VTK_MINOR_VERION >= 8)) + IF(VTK_VERSION VERSION_LESS 5.8.0) TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon ${ITK_LIBRARIES} vtkHybrid vtkIO) - ENDIF(VTK_MAJOR_VERSION > 5 OR (VTK_MAJOR_VERSION == 5 AND VTK_MINOR_VERION >= 8)) + ELSE(VTK_VERSION VERSION_LESS 5.8.0) + TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon ${ITK_LIBRARIES} ${VTK_LIBRARIES}) + ENDIF(VTK_VERSION VERSION_LESS 5.8.0) SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshToBinaryImage) WRAP_GGO(clitkMeshViewer_GGO_C clitkMeshViewer.ggo)