We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 727f766 commit c7b7120Copy full SHA for c7b7120
tests/CMakeLists.txt
@@ -25,16 +25,11 @@ else ()
25
endif ()
26
27
if (${DISTRIBUTED})
28
-
29
# distributed unit tests must supply an MPI-clue to (modified) catch
30
add_definitions(-DDISTRIBUTED_MODE)
31
32
- # ensure C MPI <mpi.h> is resolved (is injected into catch.hpp)
+ # compile and link C++ MPI
33
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
38
include_directories(${MPI_CXX_INCLUDE_PATH})
39
target_link_libraries(tests ${MPI_CXX_LIBRARIES})
40
0 commit comments