Skip to content
Snippets Groups Projects
Commit 45f57183 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Fix missing MPI dependencies in examples

parent 8f73147e
No related branches found
No related tags found
1 merge request!14Fix dashboard errors
......@@ -3,8 +3,12 @@
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#
add_executable(hello_bpWriter helloBPWriter.cpp)
target_link_libraries(hello_bpWriter adios2)
if(ADIOS_USE_MPI)
find_package(MPI COMPONENTS C REQUIRED)
add_executable(hello_bpWriter helloBPWriter.cpp)
target_include_directories(hello_bpWriter ${MPI_C_INCLUDE_PATH})
target_link_libraries(hello_bpWriter adios2 ${MPI_C_LIBRARIES})
endif()
add_executable(hello_bpWriter_nompi helloBPWriter_nompi.cpp)
target_link_libraries(hello_bpWriter_nompi adios2)
......@@ -3,8 +3,14 @@
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#
add_executable(hello_timeBPWriter timeBPWriter.cpp)
target_link_libraries(hello_timeBPWriter adios2)
if(ADIOS_USE_MPI)
find_package(MPI COMPONENTS C REQUIRED)
add_executable(hello_timeBPWriter timeBPWriter.cpp)
target_link_libraries(hello_timeBPWriter adios2)
target_include_directories(hello_timeBPWriter ${MPI_C_INCLUDE_PATH})
target_link_libraries(hello_timeBPWriter adios2 ${MPI_C_LIBRARIES})
endif()
add_executable(hello_timeBPWriter_nompi timeBPWriter_nompi.cpp)
target_link_libraries(hello_timeBPWriter_nompi adios2)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment