From a36239e9eccc78c4a1a5845586db75c23f39a422 Mon Sep 17 00:00:00 2001 From: Brian Van Essen Date: Mon, 19 Apr 2021 15:04:29 -0700 Subject: [PATCH] Fix the FindMPI command so that it includes both the C and CXX (#746) compiler and linker components. --- src/config/conduit_setup_deps.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/conduit_setup_deps.cmake b/src/config/conduit_setup_deps.cmake index 11f4521d6..16d7b04c6 100644 --- a/src/config/conduit_setup_deps.cmake +++ b/src/config/conduit_setup_deps.cmake @@ -147,7 +147,7 @@ if(CONDUIT_HDF5_DIR) # to make sure the targets propgate correctly. # in other cases, folks will if(HDF5_IS_PARALLEL AND NOT MPI_FOUND) - find_package(MPI) + find_package(MPI COMPONENTS CXX) endif() if(HDF5_IS_PARALLEL)