Skip to content

Commit a284823

Browse files
committed
Fixed CMakeLists for test program.
1 parent e19f9d9 commit a284823

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test_program/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
2828

2929
# Set project name and C/C++ standards
3030
string(TIMESTAMP DATEVER "%Y.%m.%d" UTC)
31-
project(Blink VERSION ${DATEVER} LANGUAGES C ASM)
31+
project(Blink VERSION ${DATEVER} LANGUAGES C CXX ASM)
3232
set(CMAKE_C_STANDARD 11)
33+
set(CMAKE_CXX_STANDARD 17)
3334

3435
# Initialize the Pico SDK
3536
pico_sdk_init()
@@ -49,4 +50,5 @@ pico_set_program_version(${PROJECT_NAME} ${PROJECT_VERSION})
4950
pico_set_program_description(${PROJECT_NAME} "Pico Build Action - Simple blink test program")
5051

5152
# 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")

0 commit comments

Comments
 (0)