File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,10 @@ if(NOT DEFINED CODSPEED_MODE)
2121 set (CODSPEED_MODE "instrumentation" )
2222 endif ()
2323endif ()
24-
25- # Define a preprocessor macro based on the build mode
24+ message (
25+ FATAL_ERROR
26+ "Invalid build mode: ${CODSPEED_MODE} . Use 'instrumentation' or 'walltime'."
27+ )
2628if (CODSPEED_MODE STREQUAL "instrumentation" )
2729 target_compile_definitions (codspeed INTERFACE -DCODSPEED_INSTRUMENTATION)
2830elseif (CODSPEED_MODE STREQUAL "walltime" )
29- target_compile_definitions (codspeed INTERFACE -DCODSPEED_WALLTIME)
30- else ()
31- message (
32- FATAL_ERROR
33- "Invalid build mode: ${CODSPEED_MODE} . Use 'instrumentation' or 'walltime'."
34- )
35- endif ()
36-
37- message (STATUS "Build mode set to: ${CODSPEED_MODE} " )
You can’t perform that action at this time.
0 commit comments