Skip to content

Commit 5728a04

Browse files
committed
Adjust logic for esp-idf 5.1
1 parent ccfec89 commit 5728a04

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

examples/indicator_matter/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ add_link_options(-Wl,-gc-sections)
2828

2929
project(indicator_matter)
3030

31-
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++14;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
31+
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
3232
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
3333
idf_build_set_property(COMPILE_OPTIONS "-Wno-format-nonliteral;-Wno-format-security" APPEND)

examples/indicator_matter/main/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ idf_component_register(
2020
PRIV_INCLUDE_DIRS "."
2121
EMBED_TXTFILES timeapi_cert.pem)
2222

23-
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 14)
23+
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 17)
2424
target_compile_options(${COMPONENT_LIB} PRIVATE "-DCHIP_HAVE_CONFIG_H")

examples/indicator_matter/sdkconfig.defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file was generated using idf.py save-defconfig. It can be edited manually.
22
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration
33
#
4+
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
45
CONFIG_SPI_FLASH_32BIT_ADDRESS=y
56
CONFIG_IDF_TARGET="esp32s3"
67
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y

0 commit comments

Comments
 (0)