Skip to content

Commit

Permalink
conditionally link MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Jul 17, 2023
1 parent 7849126 commit 21c4788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/nvector/manyvector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if(BUILD_NVECTOR_MPIMANYVECTOR)
INCLUDE_SUBDIR
nvector
LINK_LIBRARIES
PUBLIC MPI::MPI_C
$<IF:$<BOOL:${ENABLE_MPI}>, PUBLIC MPI::MPI_C, >
OBJECT_LIBRARIES
sundials_generic_obj
COMPILE_DEFINITIONS
Expand Down
2 changes: 1 addition & 1 deletion src/nvector/mpiplusx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sundials_add_library(sundials_nvecmpiplusx
INCLUDE_SUBDIR
nvector
LINK_LIBRARIES
PUBLIC MPI::MPI_C
$<IF:$<BOOL:${ENABLE_MPI}>, PUBLIC MPI::MPI_C, >
OBJECT_LIBRARIES
sundials_generic_obj
sundials_nvecmpimanyvector_obj
Expand Down
2 changes: 1 addition & 1 deletion src/nvector/parallel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sundials_add_library(sundials_nvecparallel
INCLUDE_SUBDIR
nvector
LINK_LIBRARIES
PUBLIC MPI::MPI_C
$<IF:$<BOOL:${ENABLE_MPI}>, PUBLIC MPI::MPI_C, >
OBJECT_LIBRARIES
sundials_generic_obj
OUTPUT_NAME
Expand Down

0 comments on commit 21c4788

Please sign in to comment.