From b6abf427664b4a0f2171a4f357ff7957a832a8eb Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Fri, 21 Oct 2011 13:37:48 +0200 Subject: [PATCH] Don't use VTK_LIBRAARIES with old VTK versions --- tools/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 5222f12..e9bb7f1 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -348,7 +348,11 @@ IF (CLITK_BUILD_TOOLS) WRAP_GGO(clitkMeshToBinaryImage_GGO_C clitkMeshToBinaryImage.ggo) ADD_EXECUTABLE(clitkMeshToBinaryImage clitkMeshToBinaryImage.cxx ${clitkMeshToBinaryImage_GGO_C}) - TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon ${ITK_LIBRARIES} ${VTK_LIBRARIES}) + 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)) + TARGET_LINK_LIBRARIES(clitkMeshToBinaryImage clitkCommon ${ITK_LIBRARIES} vtkHybrid vtkIO) + ENDIF(VTK_MAJOR_VERSION > 5 OR (VTK_MAJOR_VERSION == 5 AND VTK_MINOR_VERION >= 8)) SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshToBinaryImage) WRAP_GGO(clitkMeshViewer_GGO_C clitkMeshViewer.ggo) -- 2.47.1