Update: Using C++26 with contracts enabled
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user