From fab9bbb6571ce8f25c1557658d8c100070827185 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 28 Sep 2022 15:35:37 +0200 Subject: [PATCH] help ParaView to find CGNS --- products/ParaView.pyconf | 19 +------------------ .../paraview-5.11.0.p001-FindCGNS.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 18 deletions(-) create mode 100644 products/patches/paraview-5.11.0.p001-FindCGNS.patch 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 -- 2.39.2