]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Improve check vtk procedure (if Paraview version is not clearly specified in the...
authorvsr <vsr@opencascade.com>
Fri, 25 Jun 2010 12:54:19 +0000 (12:54 +0000)
committervsr <vsr@opencascade.com>
Fri, 25 Jun 2010 12:54:19 +0000 (12:54 +0000)
adm_local/unix/config_files/check_vtk.m4

index 49485ba3b22ad5edf4e1eeca67dc2093e3d374b4..5a07570e4a2cd45644c9a6edc056cfc96e1d57ca 100644 (file)
@@ -164,6 +164,14 @@ dnl Check VTK from ParaView.
 
 if test "x$PVHOME" != "x" ; then
 
+  if test "x$PVVERSION" = "x" ; then
+    for suffix in 3.7 3.8 ; do
+      if test -f $PVHOME/include/paraview-$suffix/vtkPVConfig.h ; then
+               PVVERSION=$suffix
+        break;
+      fi
+    done
+  fi   
   if test "x$PVVERSION" = "x" ; then
     PVVERSION=`basename $PVHOME | sed -e "s,[[^-]]*,,"`
   else