From 9212cca03514c15d3ddd1f5ebbb4458e92208c0b Mon Sep 17 00:00:00 2001
From: Samuel Thibault <samuel.thibault@inria.fr>
Date: Tue, 15 Sep 2015 17:21:02 +0000
Subject: [PATCH] Hardcode presence of starpu_mpi_data_register in simgrid-mpi
 case

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 228d03a89..3816bd167 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -626,6 +626,12 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
                     " - starpu_mpi_data_register() test fails in StarPU${ColourReset}")
                     message("-- ${Red}Check in CMakeFiles/CMakeError.log to figure out why it fails${ColourReset}")
                 endif()
+                if (CHAMELEON_SIMULATION)
+                    # function detection fails due to conflicting main
+                    # definitions. We know that the StarPU-simgrid-MPI version
+                    # has it anyway.
+                    add_definitions(-DHAVE_STARPU_MPI_DATA_REGISTER)
+                endif()
             endif()
             if(HWLOC_FOUND AND HWLOC_LIBRARY_DIRS)
                 # the RPATH to be used when installing
-- 
GitLab