Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5c307575 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

add some source files PRECISION_ properties - all precisions were not appended

parent 73117bfb
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,11 @@ set(CHAMELEON_CONTROL ...@@ -42,9 +42,11 @@ set(CHAMELEON_CONTROL
# ../control/morsewinthread.c # ../control/morsewinthread.c
) )
set(flags_to_add "")
foreach(_prec ${CHAMELEON_PRECISION}) 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() endforeach()
set_source_files_properties(../control/tile.c PROPERTIES COMPILE_FLAGS "${flags_to_add}")
# Generate the morse sources for all possible precisions # Generate the morse sources for all possible precisions
# ------------------------------------------------------ # ------------------------------------------------------
......
...@@ -53,9 +53,11 @@ set(CHAMELEON_HDRS ...@@ -53,9 +53,11 @@ set(CHAMELEON_HDRS
${CHAMELEON_HDRS_GENERATED} ${CHAMELEON_HDRS_GENERATED}
) )
set(flags_to_add "")
foreach(_prec ${CHAMELEON_PRECISION}) 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() endforeach()
set_source_files_properties(runtime.h PROPERTIES COMPILE_FLAGS "${flags_to_add}")
# Force generation of headers # Force generation of headers
# --------------------------- # ---------------------------
......
...@@ -94,9 +94,11 @@ set(RUNTIME_COMMON ...@@ -94,9 +94,11 @@ set(RUNTIME_COMMON
${RUNTIME_COMMON_GENERATED} ${RUNTIME_COMMON_GENERATED}
) )
set(flags_to_add "")
foreach(_prec ${CHAMELEON_PRECISION}) 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() endforeach()
set_source_files_properties(control/profiling.c PROPERTIES COMPILE_FLAGS "${flags_to_add}")
# Generate the morse sources for all possible precisions # Generate the morse sources for all possible precisions
# ------------------------------------------------------ # ------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment