]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Fix SOLVERLAB Paraview 5.11 compilation issue
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 29 Sep 2022 11:50:08 +0000 (13:50 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 29 Sep 2022 11:50:08 +0000 (13:50 +0200)
products/SOLVERLAB.pyconf
products/patches/SOLVERLAB-paraview-5.11.patch [new file with mode: 0644]

index 63397a2072cde41c620c9f7a4101ca2c7e551cf4..bc4d90effc149ba53ab814e53cabfeaa4f66182d 100644 (file)
@@ -38,6 +38,7 @@ default :
         incremental : "yes"
         has_salome_gui : "yes"
     }
+    patches: []
 }
 
 default_MPI :
@@ -57,6 +58,7 @@ default_MPI :
         'openmpi'
     ]
     opt_depend : ['mpi4py']
+    patches: ['SOLVERLAB-paraview-5.11.patch']
 }
 
 version_V9_9_0_MPI :
diff --git a/products/patches/SOLVERLAB-paraview-5.11.patch b/products/patches/SOLVERLAB-paraview-5.11.patch
new file mode 100644 (file)
index 0000000..2df1085
--- /dev/null
@@ -0,0 +1,30 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e5a6860..e4fe656 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -534,7 +534,7 @@ if  ( DEFINED PARAVIEW_VERSION OR DEFINED ENV{PARAVIEW_VERSION} )
+   endif( NOT DEFINED PARAVIEW_VERSION )
+   message(STATUS "ParaView version is ${PARAVIEW_VERSION}" )
+ else( DEFINED PARAVIEW_VERSION OR DEFINED ENV{PARAVIEW_VERSION} )
+-  set( PARAVIEW_SUFFIXES paraview-5.0 paraview-5.1 paraview-5.2 paraview-5.3 paraview-5.4 paraview-5.5 paraview-5.6 paraview-5.7 paraview-5.8 paraview-5.9 )
++  set( PARAVIEW_SUFFIXES paraview-5.0 paraview-5.1 paraview-5.2 paraview-5.3 paraview-5.4 paraview-5.5 paraview-5.6 paraview-5.7 paraview-5.8 paraview-5.9 paraview-5.11)
+   find_file( vtkConfig_file vtkPVConfig.h HINTS ${PARAVIEW_INCLUDE_DIR} PATH_SUFFIXES ${PARAVIEW_SUFFIXES})
+   #extraction of the paraview version"
+@@ -558,13 +558,13 @@ else( DEFINED PARAVIEW_VERSION OR DEFINED ENV{PARAVIEW_VERSION} )
+ endif( DEFINED PARAVIEW_VERSION OR DEFINED ENV{PARAVIEW_VERSION} )
+ #Choose python 2 or 3  
+-IF   ( ${PARAVIEW_VERSION} STRGREATER "5.6" OR ${PARAVIEW_VERSION} STREQUAL "5.6" )#Use python 3, use VERSION_GREATER_EQUAL if cmake >=3.7
++IF   ( ${PARAVIEW_VERSION} VERSION_GREATER "5.6" OR ${PARAVIEW_VERSION} VERSION_EQUAL "5.6" )#Use python 3, use VERSION_GREATER_EQUAL if cmake >=3.7
+   SET(PYTHON2OR3 "3")
+   message(STATUS "PARAVIEW_VERSION greater than 5.6. We need python3 for postprocessing scripts.")
+-ELSE ( ${PARAVIEW_VERSION} STRGREATER "5.6" OR ${PARAVIEW_VERSION} STREQUAL "5.6" )#Use python 2
++ELSE ( ${PARAVIEW_VERSION} VERSION_GREATER "5.6" OR ${PARAVIEW_VERSION} VERSION_EQUAL "5.6" )#Use python 2
+   SET(PYTHON2OR3 "2")
+   message(STATUS "PARAVIEW_VERSION smaller than 5.6. We need python2 for postprocessing scripts.")
+-ENDIF( ${PARAVIEW_VERSION} STRGREATER "5.6" OR ${PARAVIEW_VERSION} STREQUAL "5.6" )
++ENDIF( ${PARAVIEW_VERSION} VERSION_GREATER "5.6" OR ${PARAVIEW_VERSION} VERSION_EQUAL "5.6" )
+ # Find python
+ IF   ( PYTHON_ROOT_DIR OR DEFINED ENV{PYTHON_ROOT_DIR})