Salome HOME
OCCT: use git repository since back online
[tools/sat_salome.git] / products / patches / paraview.0017-VTK-openMPI-if-devtoolset.patch
1 diff -Naur ParaView_ref/VTK/CMake/vtkModule.cmake  ParaView_new/VTK/CMake/vtkModule.cmake
2 --- ParaView_ref/VTK/CMake/vtkModule.cmake      2021-05-28 15:30:35.258745811 +0200
3 +++ ParaView_new/VTK/CMake/vtkModule.cmake      2021-05-28 15:29:03.348649076 +0200
4 @@ -4544,7 +4544,13 @@
5        if (_vtk_export_exact)
6          set(_vtk_export_exact_arg EXACT)
7        endif ()
8 +     
9 +      IF(_vtk_export_package MATCHES "MPI")
10 +      file(APPEND "${_vtk_export_output_file}"
11 +"  find_package(${_vtk_export_package})
12 +\n")
13  
14 +      ELSE(_vtk_export_package MATCHES "MPI")
15        file(APPEND "${_vtk_export_output_file}"
16  "  find_package(${_vtk_export_package}
17      ${_vtk_export_version}
18 @@ -4554,6 +4560,11 @@
19      \${_vtk_module_find_package_required}
20      COMPONENTS          ${_vtk_export_components}
21      OPTIONAL_COMPONENTS ${_vtk_export_optional_components})
22 +\n")
23 +
24 +ENDIF(_vtk_export_package MATCHES "MPI")
25 +      file(APPEND "${_vtk_export_output_file}"
26 +"
27    if (NOT ${_vtk_export_package}_FOUND AND _vtk_module_find_package_fail_if_not_found)
28      if (NOT \${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
29        message(STATUS