]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
help ParaView to find CGNS
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 28 Sep 2022 13:35:37 +0000 (15:35 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 28 Sep 2022 13:35:37 +0000 (15:35 +0200)
products/ParaView.pyconf
products/patches/paraview-5.11.0.p001-FindCGNS.patch [new file with mode: 0644]

index 0e2c052740fa4285a51985f9a3dcce2e6003a795..043bea0f410860b470937dc4a0a9337ce7ae6109 100755 (executable)
@@ -141,24 +141,7 @@ version_5_11_0_MPI :
 {
     compil_script :  'ParaView-5.11.0.sh'
     archive_info : {archive_name : "ParaView-5.11.0-08c5d057a8.tar.gz"}
-    patches : []
-    # patches : ['paraview.0003-ParaViewClient.patch',
-    #            'paraview.0004-ParaView_hdf5.patch',
-    #            'paraview.0005-ParaView_find_cgns.patch',
-    #            'paraview.0006-ParaView_find_libxml2.patch',
-    #            'paraview.0007-ParaView_find_freetype.patch',
-    #            'paraview-5.9-VTKM_MPI.patch',
-    #            'paraview.0010-ParaView_CATALYST_cmake.patch',
-    #            'paraview.0008-ParaView_coincident_rendering.patch',
-    #            'paraview.0011-ParaView_protobuf_crash.patch',
-    #            'paraview.0015-Paraview_VTKM_ioss.patch',
-    #            'paraview-5.9.0-gcc.11.0.patch',
-    #            'paraview.0017-VTK-openMPI-if-devtoolset.patch',
-    #            'paraview.0018-spns-26351-autoconvert.patch',
-    #            'paraview.0019-spns-26344-VTK-OpenMP.patch',
-    #            'paraview.0020.findMPI.patch',
-    #            'paraview.0021-FindGDAL.patch'
-    #           ]
+    patches : ['paraview-5.11.0.p001-FindCGNS.patch']
     depend : [
               'Python',
               'hdf5',
diff --git a/products/patches/paraview-5.11.0.p001-FindCGNS.patch b/products/patches/paraview-5.11.0.p001-FindCGNS.patch
new file mode 100644 (file)
index 0000000..e78f8dc
--- /dev/null
@@ -0,0 +1,13 @@
+--- ParaView-5.11.0-ref/VTK/CMake/FindCGNS.cmake       2022-09-19 11:31:41.000000000 +0200
++++ ParaView-5.11.0-new/VTK/CMake/FindCGNS.cmake       2022-09-28 15:31:01.103508098 +0200
+@@ -5,6 +5,10 @@
+ # CGNS_LIBRARIES   - List of fully qualified libraries to link against when using CGNS.
+ # CGNS_FOUND       - Do not attempt to use CGNS if "no" or undefined.
++SET(CGNS_ROOT_DIR $ENV{CGNS_ROOT_DIR} CACHE PATH "Path to the CGNS.")
++IF(CGNS_ROOT_DIR)
++ LIST(APPEND CMAKE_PREFIX_PATH "${CGNS_ROOT_DIR}")
++ENDIF(CGNS_ROOT_DIR)
+ find_path(CGNS_INCLUDE_DIR
+   NAMES
+     cgnslib.h