IF(MEDCOUPLING_USE_MPI)
FIND_PACKAGE(SalomeMPI REQUIRED)
+ # Used when exporting configuration:
+ SET(MEDCOUPLING_CXX_COMPILER "${CMAKE_CXX_COMPILER}")
+ SET(MEDCOUPLING_MPI_CXX_COMPILER "${MPI_CXX_COMPILER}") # Might not always be set even if MPI there ...
+ SET(MEDCOUPLING_MPI_CXX_LIBRARIES "${MPI_CXX_LIBRARIES}")
+
ADD_DEFINITIONS("-DHAVE_MPI")
SALOME_ADD_MPI_TO_HDF5()
IF(MEDCOUPLING_PARTITIONER_PARMETIS)
SET(MEDCOUPLING_INSTALL_RES "@MEDCOUPLING_INSTALL_BINS@")
SET(MEDCOUPLING_INSTALL_DOC "@MEDCOUPLING_INSTALL_BINS@")
+# MPI configuration used when compiling MEDCoupling (if relevant)
+SET(MEDCOUPLING_CXX_COMPILER "@MEDCOUPLING_CXX_COMPILER@")
+SET(MEDCOUPLING_MPI_CXX_COMPILER "@MEDCOUPLING_MPI_CXX_COMPILER@")
+SET(MEDCOUPLING_MPI_CXX_LIBRARIES "@MEDCOUPLING_MPI_CXX_LIBRARIES@")
+
# Exposed MEDCoupling targets:
SET(MEDCoupling_interpkernel interpkernel)
SET(MEDCoupling_medcouplingcpp medcouplingcpp)