From 5c307575495b1549f8e8e1d82d7728c3251683b7 Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Wed, 10 Dec 2014 08:55:12 +0000 Subject: [PATCH] add some source files PRECISION_ properties - all precisions were not appended --- compute/CMakeLists.txt | 4 +++- include/CMakeLists.txt | 4 +++- runtime/starpu/CMakeLists.txt | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/compute/CMakeLists.txt b/compute/CMakeLists.txt index 587c24e77..be8847e7f 100644 --- a/compute/CMakeLists.txt +++ b/compute/CMakeLists.txt @@ -42,9 +42,11 @@ set(CHAMELEON_CONTROL # ../control/morsewinthread.c ) +set(flags_to_add "") foreach(_prec ${CHAMELEON_PRECISION}) - set_source_files_properties(../control/tile.c PROPERTIES COMPILE_FLAGS "-DPRECISION_${_prec}") + set(flags_to_add "${flags_to_add} -DPRECISION_${_prec}") endforeach() +set_source_files_properties(../control/tile.c PROPERTIES COMPILE_FLAGS "${flags_to_add}") # Generate the morse sources for all possible precisions # ------------------------------------------------------ diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 3687573cc..fae48f518 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -53,9 +53,11 @@ set(CHAMELEON_HDRS ${CHAMELEON_HDRS_GENERATED} ) +set(flags_to_add "") foreach(_prec ${CHAMELEON_PRECISION}) - set_source_files_properties(runtime.h PROPERTIES COMPILE_FLAGS "-DPRECISION_${_prec}") + set(flags_to_add "${flags_to_add} -DPRECISION_${_prec}") endforeach() +set_source_files_properties(runtime.h PROPERTIES COMPILE_FLAGS "${flags_to_add}") # Force generation of headers # --------------------------- diff --git a/runtime/starpu/CMakeLists.txt b/runtime/starpu/CMakeLists.txt index 4a0894613..2dac50b65 100644 --- a/runtime/starpu/CMakeLists.txt +++ b/runtime/starpu/CMakeLists.txt @@ -94,9 +94,11 @@ set(RUNTIME_COMMON ${RUNTIME_COMMON_GENERATED} ) +set(flags_to_add "") foreach(_prec ${CHAMELEON_PRECISION}) - set_source_files_properties(control/profiling.c PROPERTIES COMPILE_FLAGS "-DPRECISION_${_prec}") + set(flags_to_add "${flags_to_add} -DPRECISION_${_prec}") endforeach() +set_source_files_properties(control/profiling.c PROPERTIES COMPILE_FLAGS "${flags_to_add}") # Generate the morse sources for all possible precisions # ------------------------------------------------------ -- GitLab