From ea3a58b292508d6f1be5ff946629afef6870e633 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Fri, 30 Oct 2015 10:56:14 +0100 Subject: [PATCH] link MPI_LIBRARIES --- test/fc_mpi/src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fc_mpi/src/CMakeLists.txt b/test/fc_mpi/src/CMakeLists.txt index 30ea8b5..1d44328 100644 --- a/test/fc_mpi/src/CMakeLists.txt +++ b/test/fc_mpi/src/CMakeLists.txt @@ -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()