@@ -128,6 +128,8 @@ endif()
128
128
129
129
option (SECP256K1_BUILD_BENCHMARK "Build benchmarks." ON )
130
130
option (SECP256K1_BUILD_TESTS "Build tests." ON )
131
+ option (SECP256K1_BUILD_VERIFY_TESTS "Build tests with -DVERIFY." ${SECP256K1_BUILD_TESTS} )
132
+ mark_as_advanced (SECP256K1_BUILD_VERIFY_TESTS )
131
133
option (SECP256K1_BUILD_EXHAUSTIVE_TESTS "Build exhaustive tests." ON )
132
134
option (SECP256K1_BUILD_CTIME_TESTS "Build constant-time tests." ${SECP256K1_VALGRIND} )
133
135
option (SECP256K1_BUILD_EXAMPLES "Build examples." OFF )
@@ -146,33 +148,14 @@ else()
146
148
string (REGEX REPLACE "-O3[ \t\r\n ]*" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} " )
147
149
endif ()
148
150
149
- # Define custom "Coverage" build type.
150
- set (CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O0 -DCOVERAGE=1 --coverage" CACHE STRING
151
- "Flags used by the C compiler during \" Coverage\" builds."
152
- FORCE
153
- )
154
- set (CMAKE_EXE_LINKER_FLAGS_COVERAGE "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} --coverage" CACHE STRING
155
- "Flags used for linking binaries during \" Coverage\" builds."
156
- FORCE
157
- )
158
- set (CMAKE_SHARED_LINKER_FLAGS_COVERAGE "${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO} --coverage" CACHE STRING
159
- "Flags used by the shared libraries linker during \" Coverage\" builds."
160
- FORCE
161
- )
162
- mark_as_advanced (
163
- CMAKE_C_FLAGS_COVERAGE
164
- CMAKE_EXE_LINKER_FLAGS_COVERAGE
165
- CMAKE_SHARED_LINKER_FLAGS_COVERAGE
166
- )
167
-
168
151
if (CMAKE_CONFIGURATION_TYPES )
169
- set (CMAKE_CONFIGURATION_TYPES "RelWithDebInfo" "Release" "Debug" "MinSizeRel" "Coverage" )
152
+ set (CMAKE_CONFIGURATION_TYPES "RelWithDebInfo" "Release" "Debug" "MinSizeRel" )
170
153
endif ()
171
154
172
155
get_property (cached_cmake_build_type CACHE CMAKE_BUILD_TYPE PROPERTY TYPE )
173
156
if (cached_cmake_build_type )
174
157
set_property (CACHE CMAKE_BUILD_TYPE PROPERTY
175
- STRINGS "RelWithDebInfo" "Release" "Debug" "MinSizeRel" "Coverage"
158
+ STRINGS "RelWithDebInfo" "Release" "Debug" "MinSizeRel"
176
159
)
177
160
endif ()
178
161
@@ -244,11 +227,7 @@ endif()
244
227
message ("Optional binaries:" )
245
228
message (" benchmark ........................... ${SECP256K1_BUILD_BENCHMARK} " )
246
229
message (" noverify_tests ...................... ${SECP256K1_BUILD_TESTS} " )
247
- set (tests_status "${SECP256K1_BUILD_TESTS} " )
248
- if (CMAKE_BUILD_TYPE STREQUAL "Coverage" )
249
- set (tests_status OFF )
250
- endif ()
251
- message (" tests ............................... ${tests_status} " )
230
+ message (" tests ............................... ${SECP256K1_BUILD_VERIFY_TESTS} " )
252
231
message (" exhaustive tests .................... ${SECP256K1_BUILD_EXHAUSTIVE_TESTS} " )
253
232
message (" ctime_tests ......................... ${SECP256K1_BUILD_CTIME_TESTS} " )
254
233
message (" examples ............................ ${SECP256K1_BUILD_EXAMPLES} " )
0 commit comments