]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Remove VTK warnings for VTK 5.0.x ...
authoradam <adam>
Mon, 17 May 2010 15:48:22 +0000 (15:48 +0000)
committeradam <adam>
Mon, 17 May 2010 15:48:22 +0000 (15:48 +0000)
adm_local/cmake_files/FindVTK.cmake

index 4807376789a35f6213d6a1065413dd5d4c68ce09..71f7a605e3c1aec7c4de841df40c75f6ae500254 100644 (file)
@@ -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)