Skip to content

Commit abbb63b

Browse files
committed
secp: Don't build benchmarks/tests for deps
1 parent 7200df5 commit abbb63b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

external/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ string(REPLACE "-mfpu=fpv4-sp-d16" "" MODIFIED_C_FLAGS ${MODIFIED_C_FLAGS_TMP})
2525
set(SECP256K1_ENABLE_MODULE_RECOVERY ON) # needed only in Rust unit tests.
2626
set(SECP256K1_ECMULT_WINDOW_SIZE 2 CACHE STRING "Window size for ecmult precomputation for verification, specified as integer in range [2..24]. \"AUTO\" is a reasonable setting for desktop machines (currently 15). [default=AUTO]" FORCE)
2727
set(SECP256K1_ECMULT_GEN_PREC_BITS 2 CACHE STRING "Precision bits to tune the precomputed table size for signing, specified as integer 2, 4 or 8. \"AUTO\" is a reasonable setting for desktop machines (currently 4). [default=AUTO]" FORCE)
28+
set(SECP256K1_BUILD_BENCHMARK OFF CACHE BOOL "Build benchmarks.")
29+
set(SECP256K1_BUILD_TESTS OFF CACHE BOOL "Build tests.")
30+
set(SECP256K1_BUILD_EXHAUSTIVE_TESTS OFF CACHE BOOL "Build exhaustive tests.")
31+
set(SECP256K1_BUILD_CTIME_TESTS OFF CACHE BOOL "Build constant-time tests.")
2832
# Suppress all warnings in this directory, we don't have control over them.
2933
set_directory_properties(PROPERTIES
3034
COMPILE_OPTIONS "-w"

0 commit comments

Comments
 (0)