From a074bc6f72f2e776c1c38d651ba169403f6a48bd Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 11 Jun 2024 16:21:38 -0700 Subject: [PATCH] include(CTest) before BUILD_TESTING --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a40abf..a27308a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,13 +146,13 @@ else() "Proceeding with all symbols global in static library") endif() +include(CTest) + # disable tests if this is being used through e.g. FetchContent if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR AND BUILD_TESTING) set(TEST_FLAGS -Wall -Wextra -Wunreachable-code -Wpedantic -UNDEBUG) - include(CTest) - # corpus tests, which are tests curated by libfuzzer. The goal is to get broad # coverage with a small number of tests.