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.