Skip to content

Commit

Permalink
cmake: Clean up cases when to invoke enable_testing()
Browse files Browse the repository at this point in the history
The `enable_testing()` command invocation is required for `add_test()`
commands, which are used only for `{noverify_}tests`, `exhaustive_tests`
and examples.
  • Loading branch information
hebasto committed Jun 26, 2024
1 parent 6aa5765 commit 526a5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ if(SECP256K1_BUILD_CTIME_TESTS)
unset(msan_enabled)
endif()

if(SECP256K1_BUILD_BENCHMARK OR SECP256K1_BUILD_TESTS OR SECP256K1_BUILD_EXHAUSTIVE_TESTS OR SECP256K1_BUILD_CTIME_TESTS OR SECP256K1_BUILD_EXAMPLES)
if(SECP256K1_BUILD_TESTS OR SECP256K1_BUILD_EXHAUSTIVE_TESTS OR SECP256K1_BUILD_EXAMPLES)
enable_testing()
endif()

Expand Down

0 comments on commit 526a5df

Please sign in to comment.