Skip to content

Commit 4ca4240

Browse files
committed
⬆️ Bump C++ from 11 to 17 (#218)
1 parent b6ec476 commit 4ca4240

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

CMakeLists.txt

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ option(BUILD_ESP "Build for esp" OFF)
55
option(BUILD_EMULATOR "Build for emulator" OFF)
66
option(BUILD_UNITTEST "Build for testing" OFF)
77

8+
# Use C++17
9+
set(CMAKE_CXX_STANDARD 17)
10+
811
if (ESP_PLATFORM)
912
set(BUILD_ESP ON)
1013
endif ()
@@ -57,9 +60,6 @@ if (BUILD_EMULATOR)
5760
add_definitions(-DTRACE=0)
5861
add_definitions(-DWARN=0)
5962

60-
# Use C++11
61-
set(CMAKE_CXX_STANDARD 11)
62-
6363
# Set default compile flags for GCC
6464
if (CMAKE_COMPILER_IS_GNUCXX)
6565
add_compile_options(-g -v -Wall -Wextra -Wunused)
@@ -94,9 +94,6 @@ if (BUILD_UNITTEST)
9494
src/Edward/proxy_supervisor.cpp
9595
src/Edward/RFC.cpp)
9696

97-
# Use C++11
98-
set(CMAKE_CXX_STANDARD 11)
99-
10097
# Set default compile flags for GCC
10198
if (CMAKE_COMPILER_IS_GNUCXX)
10299
add_compile_options(-g -v -Wall -Wextra -Wunused)

0 commit comments

Comments
 (0)