]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Help cmake - FindMPI if native
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 28 Sep 2022 14:28:25 +0000 (16:28 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 28 Sep 2022 14:28:25 +0000 (16:28 +0200)
products/ParaView.pyconf
products/patches/paraview-5.11.0.p002-FindMPI.patch [new file with mode: 0644]

index 043bea0f410860b470937dc4a0a9337ce7ae6109..9f7d4c2da65987dc9ac1bfdc2de7406c6a03204b 100755 (executable)
@@ -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 (file)
index 0000000..1d11a19
--- /dev/null
@@ -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