From abf8c0c2d6139b2963b2bf3018810e4883b048f1 Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Fri, 23 Apr 2021 22:28:32 +0200
Subject: [PATCH] Fixing compilation with mpi wrappers

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1acd4ca..515c7a0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,6 +40,10 @@ find_package(HIP)
 if(HIP_FOUND)
         set(DEFINE_HIP_GPU "#define HIP_GPU")
         set(DEFINE_CUDIFY_USE_HIP "#define CUDIFY_USE_HIP")
+else()
+        #if not HIP we set the MPI wrappers
+        set(CMAKE_C_COMPILER mpicc)
+        set(CMAKE_CXX_COMPILER mpic++)
 endif()
 
 if(HIP_FOUND)
-- 
GitLab