From 75354076b21a9b57b3d176bf6836b8d66118562d Mon Sep 17 00:00:00 2001 From: "Balos, Cody, J" Date: Fri, 7 Jul 2023 07:44:02 -0700 Subject: [PATCH] apply mpi patch from https://github.com/spack/spack/pull/38776/files --- src/nvector/manyvector/CMakeLists.txt | 1 + src/nvector/mpiplusx/CMakeLists.txt | 1 + src/nvector/parallel/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/src/nvector/manyvector/CMakeLists.txt b/src/nvector/manyvector/CMakeLists.txt index 96c18b94cc..9c2f2a867d 100644 --- a/src/nvector/manyvector/CMakeLists.txt +++ b/src/nvector/manyvector/CMakeLists.txt @@ -59,6 +59,7 @@ if(BUILD_NVECTOR_MPIMANYVECTOR) ${SUNDIALS_SOURCE_DIR}/include/nvector/nvector_mpimanyvector.h INCLUDE_SUBDIR nvector + LINK_LIBRARIES MPI::MPI_C OBJECT_LIBRARIES sundials_generic_obj COMPILE_DEFINITIONS diff --git a/src/nvector/mpiplusx/CMakeLists.txt b/src/nvector/mpiplusx/CMakeLists.txt index b6ca271360..b36f525d85 100644 --- a/src/nvector/mpiplusx/CMakeLists.txt +++ b/src/nvector/mpiplusx/CMakeLists.txt @@ -32,6 +32,7 @@ sundials_add_library(sundials_nvecmpiplusx ${SUNDIALS_SOURCE_DIR}/include/nvector/nvector_mpiplusx.h INCLUDE_SUBDIR nvector + LINK_LIBRARIES MPI::MPI_C OBJECT_LIBRARIES sundials_generic_obj sundials_nvecmpimanyvector_obj diff --git a/src/nvector/parallel/CMakeLists.txt b/src/nvector/parallel/CMakeLists.txt index d5d2e28a59..a1f05db62a 100644 --- a/src/nvector/parallel/CMakeLists.txt +++ b/src/nvector/parallel/CMakeLists.txt @@ -32,6 +32,7 @@ sundials_add_library(sundials_nvecparallel ${SUNDIALS_SOURCE_DIR}/include/nvector/nvector_parallel.h INCLUDE_SUBDIR nvector + LINK_LIBRARIES MPI::MPI_C OBJECT_LIBRARIES sundials_generic_obj OUTPUT_NAME