From 0c046d73ad6a14b3df9fda7376327fdade38e2df Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 11 Jun 2015 18:34:05 +0300 Subject: [PATCH] Fix pb of compilation with MPI --- src/RENUMBER/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.39.2