Skip to content

Commit

Permalink
Merge pull request ornladios#3853 from caitlinross/fix-clang-fortran-…
Browse files Browse the repository at this point in the history
…build

cmake: link to MPI::MPI_Fortran using INTERFACE
  • Loading branch information
caitlinross authored Oct 24, 2023
2 parents 2af5482 + a8f1ecf commit 4907f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/Fortran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if(ADIOS2_HAVE_MPI)
PRIVATE
adios2_c_mpi
adios2_core_mpi
PUBLIC
INTERFACE
MPI::MPI_Fortran
)
target_compile_definitions(adios2_fortran_mpi PRIVATE "$<$<COMPILE_LANGUAGE:Fortran>:ADIOS2_HAVE_FORTRAN_SUBMODULES;ADIOS2_HAVE_MPI_F>")
Expand Down

0 comments on commit 4907f2b

Please sign in to comment.