From 641f868dd21b886320d8cd39e0b97280294d9946 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 17 May 2010 15:48:22 +0000 Subject: [PATCH] Remove VTK warnings for VTK 5.0.x ... --- adm_local/cmake_files/FindVTK.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/adm_local/cmake_files/FindVTK.cmake b/adm_local/cmake_files/FindVTK.cmake index 480737678..71f7a605e 100644 --- a/adm_local/cmake_files/FindVTK.cmake +++ b/adm_local/cmake_files/FindVTK.cmake @@ -47,3 +47,11 @@ SET(VTK_LIBS ${VTK_LIBS} ${VTK_WIDGETS}) FIND_LIBRARY(vtkCommonPythonD vtkCommonPythonD ${VTK_LIBRARY_DIRS} NO_DEFAULT_PATH) FIND_LIBRARY(vtkGraphicsPythonD vtkGraphicsPythonD ${VTK_LIBRARY_DIRS} NO_DEFAULT_PATH) FIND_LIBRARY(vtkImagingPythonD vtkImagingPythonD ${VTK_LIBRARY_DIRS} NO_DEFAULT_PATH) + +IF(NOT WINDOWS) + IF(VTK_MAJOR_VERSION STREQUAL 5) + IF(VTK_MINOR_VERSION STREQUAL 0) + SET(VTK_INCLUDES ${VTK_INCLUDES} -Wno-deprecated) + ENDIF(VTK_MINOR_VERSION STREQUAL 0) + ENDIF(VTK_MAJOR_VERSION STREQUAL 5) +ENDIF(NOT WINDOWS) -- 2.39.2