Skip to content

Commit c7b7120

Browse files
committed
removed C-MPI in unit tests
only C++ MPI gets invoked, despite `<mpi.h>` header
1 parent 727f766 commit c7b7120

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/CMakeLists.txt

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,11 @@ else ()
2525
endif ()
2626

2727
if (${DISTRIBUTED})
28-
2928
# distributed unit tests must supply an MPI-clue to (modified) catch
3029
add_definitions(-DDISTRIBUTED_MODE)
3130

32-
# ensure C MPI <mpi.h> is resolved (is injected into catch.hpp)
31+
# compile and link C++ MPI
3332
find_package(MPI REQUIRED)
34-
include_directories(${MPI_C_INCLUDE_PATH})
35-
target_link_libraries(tests ${MPI_C_LIBRARIES})
36-
37-
# ensure C++ MPI is defined anyway, so the compiler is happy
3833
include_directories(${MPI_CXX_INCLUDE_PATH})
3934
target_link_libraries(tests ${MPI_CXX_LIBRARIES})
4035
endif ()

0 commit comments

Comments
 (0)