link MPI_LIBRARIES

This commit is contained in:
Radovan Bast
2015-10-30 10:56:14 +01:00
parent 71bea9bfe5
commit ea3a58b292

View File

@ -1,5 +1,6 @@
if(MPI_FOUND)
add_executable(example example.F90)
target_link_libraries(example ${MPI_LIBRARIES})
else()
message(FATAL_ERROR "MPI not found")
endif()