Skip to content

Commit 8de9d4b

Browse files
committed
Only link MPI::MPI_C for compatibility with C-only projects
1 parent 7ef3cc6 commit 8de9d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ target_include_directories(
4242
"$<INSTALL_INTERFACE:include>")
4343

4444
if (CALIPER_HAVE_MPI)
45-
target_link_libraries(caliper PUBLIC MPI::MPI_CXX)
45+
target_link_libraries(caliper PUBLIC MPI::MPI_C)
4646
endif()
4747

4848
foreach (_extlib ${CALIPER_EXTERNAL_LIBS})

0 commit comments

Comments
 (0)