target_sources(Octopus_lib PRIVATE
		comm.F90
		distributed.F90
		mpi_debug.F90
		mpi_distribute.F90
		mpi_lib.F90
		mpi_test.F90
		mpi.F90
		multicomm.F90
		ring_pattern.F90
		)
if (NOT OCTOPUS_MPI)
	target_sources(Octopus_lib PRIVATE mpi_serial_stub.F90)
endif ()

## External MPI library
if (TARGET MPI::MPI_Fortran)
	target_link_libraries(Octopus_lib PUBLIC MPI::MPI_Fortran)
endif ()
