Skip to content

Commit ad52727

Browse files
committed
cmake: Clean up cases when to invoke enable_testing()
The `enable_testing()` command invocation is required for `add_test()` commands, which are used only for `{noverify_}tests`, `exhaustive_tests` and examples.
1 parent bdfc2e7 commit ad52727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ if(SECP256K1_BUILD_CTIME_TESTS)
269269
unset(msan_enabled)
270270
endif()
271271

272-
if(SECP256K1_BUILD_BENCHMARK OR SECP256K1_BUILD_TESTS OR SECP256K1_BUILD_EXHAUSTIVE_TESTS OR SECP256K1_BUILD_CTIME_TESTS OR SECP256K1_BUILD_EXAMPLES)
272+
if(SECP256K1_BUILD_TESTS OR SECP256K1_BUILD_EXHAUSTIVE_TESTS OR SECP256K1_BUILD_EXAMPLES)
273273
enable_testing()
274274
endif()
275275

0 commit comments

Comments
 (0)