From 34c5b048bb0376999729360d77a8ceab2bfbd494 Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Fri, 23 Apr 2021 00:35:55 +0200
Subject: [PATCH] Adding CXX libraries to MPI

---
 src/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2613902..20c0191 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -159,6 +159,7 @@ endif()
 # will also build with -std=c++11
 target_compile_features(vcluster_test PUBLIC cxx_std_11)
 target_link_libraries(vcluster_test ${MPI_C_LIBRARIES})
+target_link_libraries(vcluster_test ${MPI_CXX_LIBRARIES})
 
 if (CUDA_FOUND AND NOT CUDA_ON_CPU)
 	set(ADDITIONAL_OPENFPM_LIBS vcluster_cuda_on_cpu vcluster_dl_cuda_on_cpu)
-- 
GitLab