From: Nabil Ghodbane Date: Wed, 28 Sep 2022 13:35:37 +0000 (+0200) Subject: help ParaView to find CGNS X-Git-Tag: V9_11_0~307 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fab9bbb6571ce8f25c1557658d8c100070827185;p=tools%2Fsat_salome.git help ParaView to find CGNS --- diff --git a/products/ParaView.pyconf b/products/ParaView.pyconf index 0e2c052..043bea0 100755 --- a/products/ParaView.pyconf +++ b/products/ParaView.pyconf @@ -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 index 0000000..e78f8dc --- /dev/null +++ b/products/patches/paraview-5.11.0.p001-FindCGNS.patch @@ -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