Commit 229cedec authored by Brad King's avatar Brad King
Browse files

bindings: Make ADIOS2_HAVE_MPI_F definition private to Fortran sources

parent 7253ccb6
......@@ -51,13 +51,13 @@ target_link_libraries(adios2_f PRIVATE adios2)
if(ADIOS2_HAVE_MPI)
target_compile_definitions(adios2_f PRIVATE "$<$<COMPILE_LANGUAGE:Fortran>:ADIOS2_HAVE_MPI_F>")
target_sources(adios2_f PRIVATE
modules/adios2_adios_init_mod_mpi.f90
modules/adios2_io_open_mod_mpi.f90
f2c/adios2_f2c_adios_mpi.cpp
f2c/adios2_f2c_io_mpi.cpp
)
target_compile_definitions(adios2_f PUBLIC ADIOS2_HAVE_MPI_F)
target_link_libraries(adios2_f PRIVATE MPI::MPI_Fortran MPI::MPI_C)
endif()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment