From 338ee9b46310b83b6786ddae4e8fe9cf99fb767f Mon Sep 17 00:00:00 2001 From: Hays Chan <25737801+hayschan@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:52:30 +0800 Subject: [PATCH] Update CMakeLists.txt --- examples/default_example/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/default_example/CMakeLists.txt b/examples/default_example/CMakeLists.txt index 2c5355b..73e5824 100644 --- a/examples/default_example/CMakeLists.txt +++ b/examples/default_example/CMakeLists.txt @@ -2,10 +2,8 @@ # https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html # The following five lines of boilerplate have to be in your project's # CMakeLists in this exact order for cmake to work correctly -cmake_minimum_required(VERSION 3.5) -set(EXTRA_COMPONENT_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../../) +cmake_minimum_required(VERSION 3.16) + +set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -add_compile_options("-Wno-format") -get_filename_component(ProjectId ${CMAKE_CURRENT_LIST_DIR} NAME) -string(REPLACE " " "_" ProjectId ${ProjectId}) -project(${ProjectId}) \ No newline at end of file +project(xgzf4000-default-example)