Skip to content

Commit

Permalink
ADIOS2 2.6.0: New CMake Targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jun 16, 2020
1 parent b477a15 commit 0b1c853
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/ci/spack/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ packages:
adios:
variants: ~zfp ~sz ~lz4 ~blosc
adios2:
version: [2.5.0]
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc
python:
version: [3.5.5, 3.6.3, 3.7.1, 3.7.2, 3.8.0]
Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,11 @@ endif()

# ADIOS2 Backend
if(openPMD_HAVE_ADIOS2)
target_link_libraries(openPMD PUBLIC adios2::adios2)
if(openPMD_HAVE_MPI)
target_link_libraries(openPMD PUBLIC adios2::cxx11_mpi)
else()
target_link_libraries(openPMD PUBLIC adios2::cxx11)
endif()
endif()

# Runtime parameter and API status checks ("asserts")
Expand Down

0 comments on commit 0b1c853

Please sign in to comment.