diff --git a/bindings/Fortran/CMakeLists.txt b/bindings/Fortran/CMakeLists.txt index 2e0cb2c1b3..1a998bbe95 100644 --- a/bindings/Fortran/CMakeLists.txt +++ b/bindings/Fortran/CMakeLists.txt @@ -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 "$<$:ADIOS2_HAVE_FORTRAN_SUBMODULES;ADIOS2_HAVE_MPI_F>")