From d1cdb7ebbb6271a2045b46f8f3ac5fc66caafd5c Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 28 Sep 2022 16:28:25 +0200 Subject: [PATCH] Help cmake - FindMPI if native --- products/ParaView.pyconf | 4 +++- products/patches/paraview-5.11.0.p002-FindMPI.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 products/patches/paraview-5.11.0.p002-FindMPI.patch diff --git a/products/ParaView.pyconf b/products/ParaView.pyconf index 043bea0..9f7d4c2 100755 --- a/products/ParaView.pyconf +++ b/products/ParaView.pyconf @@ -141,7 +141,9 @@ version_5_11_0_MPI : { compil_script : 'ParaView-5.11.0.sh' archive_info : {archive_name : "ParaView-5.11.0-08c5d057a8.tar.gz"} - patches : ['paraview-5.11.0.p001-FindCGNS.patch'] + patches : ['paraview-5.11.0.p001-FindCGNS.patch', + 'paraview-5.11.0.p002-FindMPI.patch + ] depend : [ 'Python', 'hdf5', diff --git a/products/patches/paraview-5.11.0.p002-FindMPI.patch b/products/patches/paraview-5.11.0.p002-FindMPI.patch new file mode 100644 index 0000000..1d11a19 --- /dev/null +++ b/products/patches/paraview-5.11.0.p002-FindMPI.patch @@ -0,0 +1,12 @@ +--- ParaView-5.11.0_ref/VTK/CMake/patches/3.22/FindMPI.cmake 2022-09-28 16:25:01.988368372 +0200 ++++ ParaView-5.11.0_new/VTK/CMake/patches/3.22/FindMPI.cmake 2022-09-28 16:22:50.932061970 +0200 +@@ -1820,6 +1820,9 @@ + list(APPEND _MPI_REQ_VARS "MPI_MPICXX_FOUND") + endif() + ++if(DEFINED ENV{MPI_C_FOUND}) ++ set(MPI_C_FOUND $ENV{MPI_C_FOUND}) ++endif() + set(_mpi_extra_args "") + if (NOT CMAKE_VERSION VERSION_LESS "3.16") # XXX(cmake-3.16) + list(APPEND _mpi_extra_args -- 2.39.2