From 10d5627d584051f7e0d6d2daa0fcb3754840bf25 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Mon, 30 Sep 2024 07:38:51 +0200 Subject: [PATCH] Go to C++20 (also needed for .varname style struct initialisation). --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fc54d37..3020c91b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ add_library(${PROJECT_NAME} STATIC target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic -Werror) ########################################################################## target_include_directories(${PROJECT_NAME} PUBLIC src extras/cyphal++/include src/libcanard src/libo1heap) -target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17) +target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_20) ########################################################################## if(BUILD_EXAMPLES) add_subdirectory(examples/CAN/host-example-01-opencyphal-basic-node)