Skip to content

Commit 422b170

Browse files
authored
Update CMakeLists.txt
1 parent e77a72b commit 422b170

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

examples/espidf-arduino-matter-light/CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
cmake_minimum_required(VERSION 3.16.0)
2-
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
1+
# The following lines of boilerplate have to be in your project's
2+
# CMakeLists in this exact order for cmake to work correctly
3+
cmake_minimum_required(VERSION 3.5)
4+
35
set(PROJECT_VER "1.0")
46
set(PROJECT_VER_NUMBER 1)
57

6-
project(matter-light)
8+
# This should be done before using the IDF_TARGET variable.
9+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
710

11+
idf_build_set_property(MINIMAL_BUILD ON)
12+
project(arduino_managed_component_light)
813

914
# WARNING: This is just an example for using key for decrypting the encrypted OTA image
1015
# Please do not use it as is.
@@ -20,4 +25,4 @@ idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_
2025
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
2126
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
2227
# flags that depend on -Wformat
23-
idf_build_set_property(COMPILE_OPTIONS "-Wno-format-nonliteral;-Wno-format-security" APPEND)
28+
idf_build_set_property(COMPILE_OPTIONS "-Wno-format-nonliteral;-Wno-format-security" APPEND)

0 commit comments

Comments
 (0)