include(CTest) before BUILD_TESTING

This commit is contained in:
2024-06-11 16:21:38 -07:00
parent 1553a44986
commit a074bc6f72
+2 -2
View File
@@ -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.