Skip to content

Commit fd0dfcf

Browse files
authored
advance C++ compile standard to c++17
advance C++ compile standard to c++17
2 parents aa57569 + 193d4fb commit fd0dfcf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BUILD.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This project can be built either with CMake, or with CMake executed by Bazel.
2323
-DProton_DIR=...
2424
-DProtonCpp_DIR=...
2525
-DENABLE_QPID_PROTON=ON
26-
-DCMAKE_USER_C_FLAGS='-std=c++11'
26+
-DCMAKE_USER_C_FLAGS='-std=c++17'
2727

2828
### Bazel command line
2929

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20.0)
22
project(cli-cpp)
33
enable_language(CXX)
44

5-
set(CMAKE_CXX_STANDARD 11)
5+
set(CMAKE_CXX_STANDARD 17)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_CXX_EXTENSIONS OFF)
88

@@ -97,7 +97,7 @@ if(NOT CMAKE_BUILD_TYPE)
9797
endif(NOT CMAKE_BUILD_TYPE)
9898

9999
if (CMAKE_COMPILER_IS_GNUCXX)
100-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
100+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
101101

102102
set(CMAKE_C_FLAGS "-Wall -Wshadow -fdiagnostics-color=auto" CACHE STRING
103103
"Flags used by the compiler during all build types." FORCE

0 commit comments

Comments
 (0)