Skip to content

Commit

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

0 comments on commit 360a3c2

Please sign in to comment.