From f87a3589f4d3bfd7a398232971bdb1ff125b8e9d Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 20 Jun 2024 21:16:30 +0100 Subject: [PATCH] cmake: Do not set `CTEST_TEST_TARGET_ALIAS` An alias for the "test" target can be confusing for the downstream project. So remove it. --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef2b07a11f..0ae8bb54f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,10 +273,6 @@ if(SECP256K1_BUILD_CTIME_TESTS) unset(msan_enabled) endif() -# Ask CTest to create a "check" target (e.g., make check) as alias for the "test" target. -# CTEST_TEST_TARGET_ALIAS is not documented but supposed to be user-facing. -# See: https://gitlab.kitware.com/cmake/cmake/-/commit/816c9d1aa1f2b42d40c81a991b68c96eb12b6d2 -set(CTEST_TEST_TARGET_ALIAS check) include(CTest) # We do not use CTest's BUILD_TESTING because a single toggle for all tests is too coarse for our needs. mark_as_advanced(BUILD_TESTING)