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)