Skip to content

Commit 51b811f

Browse files
committed
feat(cmake): update C/C++ standard to 17
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 26d2b2a commit 51b811f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/toolchain.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ SET(CMAKE_SYSTEM_PROCESSOR arm)
4949
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) # don't try to link when testing the compiler, it won't work anyway
5050
set(BUILD_SHARED_LIBS false CACHE STRING "")
5151

52-
set(CMAKE_CXX_STANDARD 14)
53-
set(CMAKE_C_STANDARD 11)
52+
set(CMAKE_CXX_STANDARD 17)
53+
set(CMAKE_C_STANDARD 17)
5454

5555
set(CMAKE_EXECUTABLE_SUFFIX .elf)
5656
# These override CMAKE_EXECUTABLE_SUFFIX -- prevent any CMake built-in from overriding the value we want

0 commit comments

Comments
 (0)