Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes inclusion of manyvector examples when cmake option is disabled #446

Merged
merged 3 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/arkode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
# C examples
if(EXAMPLES_ENABLE_C)
add_subdirectory(C_serial)
add_subdirectory(C_manyvector)
if(BUILD_NVECTOR_MANYVECTOR)
add_subdirectory(C_manyvector)
endif()
if(ENABLE_OPENMP AND OPENMP_FOUND)
add_subdirectory(C_openmp)
endif()
Expand Down
4 changes: 3 additions & 1 deletion examples/cvode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ if(EXAMPLES_ENABLE_C)
endif()
if(ENABLE_MPI AND MPI_C_FOUND)
add_subdirectory(parallel)
add_subdirectory(C_mpimanyvector)
if(BUILD_NVECTOR_MPIMANYVECTOR)
add_subdirectory(C_mpimanyvector)
endif()
endif()
if(ENABLE_HYPRE AND HYPRE_FOUND)
add_subdirectory(parhyp)
Expand Down
8 changes: 6 additions & 2 deletions examples/nvector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ target_link_libraries(test_nvector_obj PRIVATE sundials_nvecserial)

if(ENABLE_MPI AND MPI_C_FOUND)
add_subdirectory(parallel)
add_subdirectory(mpimanyvector)
if(BUILD_NVECTOR_MPIMANYVECTOR)
add_subdirectory(mpimanyvector)
endif()
add_subdirectory(mpiplusx)
# Build the mpi nvector test utilities
add_library(test_nvectormpi_obj OBJECT test_mpinvector.c)
Expand All @@ -43,7 +45,9 @@ if(ENABLE_MPI AND MPI_C_FOUND)
endif()
target_link_libraries(test_nvectormpi_obj PRIVATE MPI::MPI_C sundials_nvecparallel)
endif()
add_subdirectory(manyvector)
if(BUILD_NVECTOR_MANYVECTOR)
add_subdirectory(manyvector)
endif()

if(BUILD_NVECTOR_PARHYP)
add_subdirectory(parhyp)
Expand Down
Loading