]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Fix pb of compilation with MPI
authorvsr <vsr@opencascade.com>
Thu, 11 Jun 2015 15:34:05 +0000 (18:34 +0300)
committervsr <vsr@opencascade.com>
Thu, 11 Jun 2015 15:35:52 +0000 (18:35 +0300)
src/RENUMBER/CMakeLists.txt

index 6f18e4b299b2ce839ce945ae683a8c9611fd40c7..47eb9639aa926c7b8a12310ffd8a107f83d738b2 100644 (file)
@@ -36,6 +36,11 @@ INCLUDE_DIRECTORIES(
   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
   )
 
+IF(SALOME_USE_MPI)
+  ADD_DEFINITIONS(${MPI_DEFINITIONS})
+  INCLUDE_DIRECTORIES(${MPI_INCLUDE_DIRS})
+ENDIF(SALOME_USE_MPI)
+
 SET(renumbercpp_HEADERS_HXX
   RENUMBER_Renumbering.hxx
   RenumberingFactory.hxx
@@ -74,6 +79,10 @@ IF(Boost_FOUND)
   SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${BOOST_LIBRARIES})
 ENDIF(Boost_FOUND)
 
+IF(SALOME_USE_MPI)
+  SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${MPI_LIBRARIES})
+ENDIF(SALOME_USE_MPI)
+
 ADD_EXECUTABLE(renumber ${renumber_SOURCES})
 SET_TARGET_PROPERTIES(renumber PROPERTIES COMPILE_FLAGS "${renumber_DEFINITIONS}")
 TARGET_LINK_LIBRARIES(renumber renumbercpp)