File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,9 @@ include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
28
28
29
29
# Set project name and C/C++ standards
30
30
string (TIMESTAMP DATEVER "%Y.%m.%d" UTC )
31
- project (Blink VERSION ${DATEVER} LANGUAGES C ASM )
31
+ project (Blink VERSION ${DATEVER} LANGUAGES C CXX ASM )
32
32
set (CMAKE_C_STANDARD 11 )
33
+ set (CMAKE_CXX_STANDARD 17 )
33
34
34
35
# Initialize the Pico SDK
35
36
pico_sdk_init ()
@@ -49,4 +50,5 @@ pico_set_program_version(${PROJECT_NAME} ${PROJECT_VERSION})
49
50
pico_set_program_description (${PROJECT_NAME} "Pico Build Action - Simple blink test program" )
50
51
51
52
# CMake flags
52
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections" )
53
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections" )
54
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections" )
You can’t perform that action at this time.
0 commit comments