Skip to content

Commit 07b261d

Browse files
committed
Teensyduino 1.59 now uses C++17 standard
1 parent 0146a9a commit 07b261d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmake/toolchain/teensy32.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# Arduino framework in order to ensure that basic functions of the Teensy hardware platform are available. This
66
# toolchain will build the core Teensy Arduino libraries, and include the headers as part of the target include headers.
77
####
8+
set(CMAKE_CXX_STANDARD 17)
9+
add_compile_options(-std=c++17 -std=gnu++17) # Force C++17 standard
10+
811
# System setup for Teensyduino
912
set(CMAKE_SYSTEM_NAME "Generic")
1013
set(CMAKE_SYSTEM_PROCESSOR "arm")

cmake/toolchain/teensy40.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# Arduino framework in order to ensure that basic functions of the Teensy hardware platform are available. This
66
# toolchain will build the core Teensy Arduino libraries, and include the headers as part of the target include headers.
77
####
8+
set(CMAKE_CXX_STANDARD 17)
9+
add_compile_options(-std=c++17 -std=gnu++17) # Force C++17 standard
10+
811
# System setup for Teensyduino
912
set(CMAKE_SYSTEM_NAME "Generic")
1013
set(CMAKE_SYSTEM_PROCESSOR "arm")

cmake/toolchain/teensy41.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# Arduino framework in order to ensure that basic functions of the Teensy hardware platform are available. This
66
# toolchain will build the core Teensy Arduino libraries, and include the headers as part of the target include headers.
77
####
8+
set(CMAKE_CXX_STANDARD 17)
9+
add_compile_options(-std=c++17 -std=gnu++17) # Force C++17 standard
10+
811
# System setup for Teensyduino
912
set(CMAKE_SYSTEM_NAME "Generic")
1013
set(CMAKE_SYSTEM_PROCESSOR "arm")

0 commit comments

Comments
 (0)