From 4500fdc3d881a8acbca37671a0484cc816aaa6dd Mon Sep 17 00:00:00 2001
From: Samuel Thibault <samuel.thibault@inria.fr>
Date: Tue, 15 Sep 2015 17:21:41 +0000
Subject: [PATCH] Avoid duplicate detection if the test ends up working someday

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3816bd167..e52f6144d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -625,12 +625,12 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
                     message("-- ${Red}Looking for starpu with starpu_mpi_data_register"
                     " - 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)
+                    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()
             endif()
             if(HWLOC_FOUND AND HWLOC_LIBRARY_DIRS)
-- 
GitLab