From: vsr Date: Thu, 11 Jun 2015 15:34:05 +0000 (+0300) Subject: Fix pb of compilation with MPI X-Git-Tag: V7_7_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c046d73ad6a14b3df9fda7376327fdade38e2df;p=tools%2Fmedcoupling.git Fix pb of compilation with MPI --- diff --git a/src/RENUMBER/CMakeLists.txt b/src/RENUMBER/CMakeLists.txt index 6f18e4b29..47eb9639a 100644 --- a/src/RENUMBER/CMakeLists.txt +++ b/src/RENUMBER/CMakeLists.txt @@ -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)