From 64a0aa4d3d9b9ba58d9925654a914d2d9ab16f5e Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Fri, 17 Jun 2022 13:19:08 +0200 Subject: [PATCH] Update standard to c++17 --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8aca20e..afc0e86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,7 +113,6 @@ endif() # enable all warnings (well, not all, but some) add_compile_options(-Wall -Wsign-compare) -add_compile_options($<$:-std=c++14>) # support _DEBUG macro (some code uses to recognize debug builds) if(CMAKE_BUILD_TYPE STREQUAL "Debug") @@ -132,7 +131,7 @@ add_subdirectory(lib) add_executable(firmware) -set_target_properties(firmware PROPERTIES CXX_STANDARD 14) +set_target_properties(firmware PROPERTIES CXX_STANDARD 17) if(CMAKE_CROSSCOMPILING) #[[