Skip to content

Commit aab6aea

Browse files
committed
Fix TE_BITWISE_OPERATIONS CMake flag
Display more info when configuring also.
1 parent eb4cfe7 commit aab6aea

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/CMakeLists.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
1414
# Options:
1515
# - USE_ADDRESS_SANITIZE to use ASAN
1616
# - 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
1819
# - TE_BITWISE_OPERATIONS to parse ^, &, and | as bitwise operators
1920

2021
project(TETestRunner)
@@ -42,13 +43,24 @@ if(CLANG_TIDY_COMMAND AND USE_CLANG_TIDY)
4243
endif()
4344

4445
if(TE_FLOAT)
46+
message(STATUS "Datatype: float")
4547
add_definitions(-DTE_FLOAT)
48+
else()
49+
message(STATUS "Datatype: double")
4650
endif(TE_FLOAT)
51+
4752
if(TE_POW_FROM_RIGHT)
53+
message(STATUS "Power from right: enabled")
4854
add_definitions(-DTE_POW_FROM_RIGHT)
55+
else()
56+
message(STATUS "Power from right: disabled")
4957
endif(TE_POW_FROM_RIGHT)
58+
5059
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")
5264
endif(TE_BITWISE_OPERATIONS)
5365

5466
# place Catch2 at the same folder level as this repo if it isn't installed

0 commit comments

Comments
 (0)