Update: Using C++26 with contracts enabled

This commit is contained in:
David Gil de Gómez Pérez
2026-08-12 13:18:20 +03:00
parent 3cce26e72d
commit ea0e601850
18 changed files with 153 additions and 84 deletions
+3
View File
@@ -14,12 +14,15 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
option(COURSE_BUILD_TESTS "Build Google Test exercise targets" ON)
option(COURSE_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF)
option(COURSE_ENABLE_CONTRACTS "Enable C++26 contracts on GCC 16+" ON)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(CourseOptions)
include(CourseExercise)
add_subdirectory(support)
if(COURSE_BUILD_TESTS)
include(FetchContent)
FetchContent_Declare(