File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
14
14
# Options:
15
15
# - USE_ADDRESS_SANITIZE to use ASAN
16
16
# - USE_CLANG_TIDY to run clang-tidy
17
- # - TE_FLOAT and TE_POW_FROM_RIGHT to enable the respective preprocessors
17
+ # - TE_FLOAT to use float as the internal datatype
18
+ # - TE_POW_FROM_RIGHT to enable parsing exponents from the right
18
19
# - TE_BITWISE_OPERATIONS to parse ^, &, and | as bitwise operators
19
20
20
21
project (TETestRunner )
@@ -42,13 +43,24 @@ if(CLANG_TIDY_COMMAND AND USE_CLANG_TIDY)
42
43
endif ()
43
44
44
45
if (TE_FLOAT )
46
+ message (STATUS "Datatype: float" )
45
47
add_definitions (-DTE_FLOAT )
48
+ else ()
49
+ message (STATUS "Datatype: double" )
46
50
endif (TE_FLOAT )
51
+
47
52
if (TE_POW_FROM_RIGHT )
53
+ message (STATUS "Power from right: enabled" )
48
54
add_definitions (-DTE_POW_FROM_RIGHT )
55
+ else ()
56
+ message (STATUS "Power from right: disabled" )
49
57
endif (TE_POW_FROM_RIGHT )
58
+
50
59
if (TE_BITWISE_OPERATIONS )
51
- add_definitions (-TE_BITWISE_OPERATIONS )
60
+ message (STATUS "Extended bitwise operators: enabled" )
61
+ add_definitions (-DTE_BITWISE_OPERATIONS )
62
+ else ()
63
+ message (STATUS "Extended bitwise operators: disabled" )
52
64
endif (TE_BITWISE_OPERATIONS )
53
65
54
66
# place Catch2 at the same folder level as this repo if it isn't installed
You can’t perform that action at this time.
0 commit comments