Skip to content

Commit 8fb81c2

Browse files
committed
build: Skip secp256k1 ctime tests when tests are not being built
1 parent 2756797 commit 8fb81c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ set(SECP256K1_ENABLE_MODULE_RECOVERY ON CACHE BOOL "" FORCE)
4949
set(SECP256K1_BUILD_BENCHMARK OFF CACHE BOOL "" FORCE)
5050
set(SECP256K1_BUILD_TESTS ${BUILD_TESTS} CACHE BOOL "" FORCE)
5151
set(SECP256K1_BUILD_EXHAUSTIVE_TESTS ${BUILD_TESTS} CACHE BOOL "" FORCE)
52+
if(NOT BUILD_TESTS)
53+
set(SECP256K1_BUILD_CTIME_TESTS ${BUILD_TESTS} CACHE BOOL "" FORCE)
54+
endif()
5255
set(SECP256K1_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
5356
include(GetTargetInterface)
5457
# -fsanitize and related flags apply to both C++ and C,

0 commit comments

Comments
 (0)