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)
21
21
set (CODSPEED_MODE "instrumentation" )
22
22
endif ()
23
23
endif ()
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
+ )
26
28
if (CODSPEED_MODE STREQUAL "instrumentation" )
27
29
target_compile_definitions (codspeed INTERFACE -DCODSPEED_INSTRUMENTATION)
28
30
elseif (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