diff --git a/CMakeLists.txt b/CMakeLists.txt index 0335d0cedb..c989babd7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) project(esp-idf C CXX ASM) if(CMAKE_CURRENT_LIST_DIR STREQUAL CMAKE_SOURCE_DIR) diff --git a/components/bootloader/subproject/CMakeLists.txt b/components/bootloader/subproject/CMakeLists.txt index 0c542ee164..5428ec2463 100644 --- a/components/bootloader/subproject/CMakeLists.txt +++ b/components/bootloader/subproject/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) if(NOT SDKCONFIG) message(FATAL_ERROR "Bootloader subproject expects the SDKCONFIG variable to be passed " diff --git a/components/cxx/test_apps/exception/CMakeLists.txt b/components/cxx/test_apps/exception/CMakeLists.txt index b29acb36de..ee40c6ca11 100644 --- a/components/cxx/test_apps/exception/CMakeLists.txt +++ b/components/cxx/test_apps/exception/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(COMPONENTS main) diff --git a/components/cxx/test_apps/exception_no_except/CMakeLists.txt b/components/cxx/test_apps/exception_no_except/CMakeLists.txt index b29acb36de..ee40c6ca11 100644 --- a/components/cxx/test_apps/exception_no_except/CMakeLists.txt +++ b/components/cxx/test_apps/exception_no_except/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(COMPONENTS main) diff --git a/components/cxx/test_apps/general/CMakeLists.txt b/components/cxx/test_apps/general/CMakeLists.txt index 5d1506c5e8..7eab378c97 100644 --- a/components/cxx/test_apps/general/CMakeLists.txt +++ b/components/cxx/test_apps/general/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(COMPONENTS main) diff --git a/components/cxx/test_apps/rtti/CMakeLists.txt b/components/cxx/test_apps/rtti/CMakeLists.txt index 289b1c9e21..d4c3179192 100644 --- a/components/cxx/test_apps/rtti/CMakeLists.txt +++ b/components/cxx/test_apps/rtti/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(COMPONENTS main) diff --git a/components/driver/test_apps/gpio/CMakeLists.txt b/components/driver/test_apps/gpio/CMakeLists.txt index 353f5f8732..707353c92a 100644 --- a/components/driver/test_apps/gpio/CMakeLists.txt +++ b/components/driver/test_apps/gpio/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(gpio_test) diff --git a/components/driver/test_apps/gptimer/CMakeLists.txt b/components/driver/test_apps/gptimer/CMakeLists.txt index 9b8072e4cc..58a4e018f7 100644 --- a/components/driver/test_apps/gptimer/CMakeLists.txt +++ b/components/driver/test_apps/gptimer/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(gptimer_test) diff --git a/components/driver/test_apps/legacy_pcnt_driver/CMakeLists.txt b/components/driver/test_apps/legacy_pcnt_driver/CMakeLists.txt index 344323c720..3315988490 100644 --- a/components/driver/test_apps/legacy_pcnt_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_pcnt_driver/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_pcnt_driver_test) diff --git a/components/driver/test_apps/legacy_rmt_driver/CMakeLists.txt b/components/driver/test_apps/legacy_rmt_driver/CMakeLists.txt index 917aa256e8..a8ae981672 100644 --- a/components/driver/test_apps/legacy_rmt_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_rmt_driver/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_rmt_test) diff --git a/components/driver/test_apps/legacy_rtc_temp_driver/CMakeLists.txt b/components/driver/test_apps/legacy_rtc_temp_driver/CMakeLists.txt index 761e56ea88..b7da134625 100644 --- a/components/driver/test_apps/legacy_rtc_temp_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_rtc_temp_driver/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_rtc_temp_driver_test) diff --git a/components/driver/test_apps/legacy_timer_driver/CMakeLists.txt b/components/driver/test_apps/legacy_timer_driver/CMakeLists.txt index f73bf63842..e65bf8d0b5 100644 --- a/components/driver/test_apps/legacy_timer_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_timer_driver/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_timer_driver_test) diff --git a/components/driver/test_apps/pulse_cnt/CMakeLists.txt b/components/driver/test_apps/pulse_cnt/CMakeLists.txt index a978a789f0..a3a67ebac8 100644 --- a/components/driver/test_apps/pulse_cnt/CMakeLists.txt +++ b/components/driver/test_apps/pulse_cnt/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(pcnt_test) diff --git a/components/driver/test_apps/rmt/CMakeLists.txt b/components/driver/test_apps/rmt/CMakeLists.txt index 4523465b2f..aa0d48c4e0 100644 --- a/components/driver/test_apps/rmt/CMakeLists.txt +++ b/components/driver/test_apps/rmt/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(rmt_test) diff --git a/components/driver/test_apps/temperature_sensor/CMakeLists.txt b/components/driver/test_apps/temperature_sensor/CMakeLists.txt index e8b2c77d1f..e2b097024c 100644 --- a/components/driver/test_apps/temperature_sensor/CMakeLists.txt +++ b/components/driver/test_apps/temperature_sensor/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(test_temperature_sensor) diff --git a/components/esp_eth/test_apps/CMakeLists.txt b/components/esp_eth/test_apps/CMakeLists.txt index 9ac3394bf3..060c819aaa 100644 --- a/components/esp_eth/test_apps/CMakeLists.txt +++ b/components/esp_eth/test_apps/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(esp_eth_test) diff --git a/components/esp_event/host_test/esp_event_unit_test/CMakeLists.txt b/components/esp_event/host_test/esp_event_unit_test/CMakeLists.txt index 415e0d64ca..e5f85c0de4 100644 --- a/components/esp_event/host_test/esp_event_unit_test/CMakeLists.txt +++ b/components/esp_event/host_test/esp_event_unit_test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) set(COMPONENTS main) diff --git a/components/esp_lcd/test_apps/i2c_lcd/CMakeLists.txt b/components/esp_lcd/test_apps/i2c_lcd/CMakeLists.txt index 9f5761fc27..ce93c6f282 100644 --- a/components/esp_lcd/test_apps/i2c_lcd/CMakeLists.txt +++ b/components/esp_lcd/test_apps/i2c_lcd/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(i2c_lcd_panel_test) diff --git a/components/esp_lcd/test_apps/i80_lcd/CMakeLists.txt b/components/esp_lcd/test_apps/i80_lcd/CMakeLists.txt index 5bc0952c87..8a8446755d 100644 --- a/components/esp_lcd/test_apps/i80_lcd/CMakeLists.txt +++ b/components/esp_lcd/test_apps/i80_lcd/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(i80_lcd_panel_test) diff --git a/components/esp_lcd/test_apps/rgb_lcd/CMakeLists.txt b/components/esp_lcd/test_apps/rgb_lcd/CMakeLists.txt index 4852f4edea..1993e30336 100644 --- a/components/esp_lcd/test_apps/rgb_lcd/CMakeLists.txt +++ b/components/esp_lcd/test_apps/rgb_lcd/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(rgb_lcd_panel_test) diff --git a/components/esp_lcd/test_apps/spi_lcd/CMakeLists.txt b/components/esp_lcd/test_apps/spi_lcd/CMakeLists.txt index 46462997a7..0da6b6743a 100644 --- a/components/esp_lcd/test_apps/spi_lcd/CMakeLists.txt +++ b/components/esp_lcd/test_apps/spi_lcd/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(spi_lcd_panel_test) diff --git a/components/esp_local_ctrl/proto/CMakeLists.txt b/components/esp_local_ctrl/proto/CMakeLists.txt index 3bcc8e87df..d4c4c89401 100644 --- a/components/esp_local_ctrl/proto/CMakeLists.txt +++ b/components/esp_local_ctrl/proto/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(PROTO_COMPILER "protoc") set(PROTO_C_COMPILER "protoc-c") diff --git a/components/esp_netif/test_apps/CMakeLists.txt b/components/esp_netif/test_apps/CMakeLists.txt index dc191a89b8..ff3764931c 100644 --- a/components/esp_netif/test_apps/CMakeLists.txt +++ b/components/esp_netif/test_apps/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") diff --git a/components/esp_rom/host_test/rom_test/CMakeLists.txt b/components/esp_rom/host_test/rom_test/CMakeLists.txt index c84747fef4..e13f39f765 100644 --- a/components/esp_rom/host_test/rom_test/CMakeLists.txt +++ b/components/esp_rom/host_test/rom_test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) set(COMPONENTS main) diff --git a/components/esp_system/test_apps/rtc_8md256/CMakeLists.txt b/components/esp_system/test_apps/rtc_8md256/CMakeLists.txt index f8ef7bccd2..4abd8b6941 100644 --- a/components/esp_system/test_apps/rtc_8md256/CMakeLists.txt +++ b/components/esp_system/test_apps/rtc_8md256/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(rtc_8md256) diff --git a/components/espcoredump/test_apps/CMakeLists.txt b/components/espcoredump/test_apps/CMakeLists.txt index 6c28dfd6d9..cef5f46515 100644 --- a/components/espcoredump/test_apps/CMakeLists.txt +++ b/components/espcoredump/test_apps/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) # Here for reproducible builds, we use the CI compile options to make sure they're same. # Use -ffile-prefix-map to map the local path prefix to ci path prefix diff --git a/components/esptool_py/run_serial_tool.cmake b/components/esptool_py/run_serial_tool.cmake index 0a0b499b94..93abb87fdc 100644 --- a/components/esptool_py/run_serial_tool.cmake +++ b/components/esptool_py/run_serial_tool.cmake @@ -4,7 +4,7 @@ # # It is recommended to NOT USE this CMake script if you have the option of # running the tool directly. This script exists only for use inside CMake builds. -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) if(NOT IDF_PATH) message(FATAL_ERROR "IDF_PATH not set.") diff --git a/components/log/host_test/log_test/CMakeLists.txt b/components/log/host_test/log_test/CMakeLists.txt index 7d53a82335..ed4b9b0c41 100644 --- a/components/log/host_test/log_test/CMakeLists.txt +++ b/components/log/host_test/log_test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) set(COMPONENTS main) diff --git a/components/lwip/test_afl_host/CMakeLists.txt b/components/lwip/test_afl_host/CMakeLists.txt index d893cb17a4..5891b6162b 100644 --- a/components/lwip/test_afl_host/CMakeLists.txt +++ b/components/lwip/test_afl_host/CMakeLists.txt @@ -1,6 +1,6 @@ # The following four 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) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) diff --git a/components/mdns/host_test/CMakeLists.txt b/components/mdns/host_test/CMakeLists.txt index 132e436eaf..784364cff9 100644 --- a/components/mdns/host_test/CMakeLists.txt +++ b/components/mdns/host_test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) set(COMPONENTS main) diff --git a/components/mdns/test_afl_fuzz_host/CMakeLists.txt b/components/mdns/test_afl_fuzz_host/CMakeLists.txt index d65845194f..d76a875e60 100644 --- a/components/mdns/test_afl_fuzz_host/CMakeLists.txt +++ b/components/mdns/test_afl_fuzz_host/CMakeLists.txt @@ -1,6 +1,6 @@ # The following four 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) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) diff --git a/components/mqtt/host_test/CMakeLists.txt b/components/mqtt/host_test/CMakeLists.txt index 312ad1e7e9..947809f26d 100644 --- a/components/mqtt/host_test/CMakeLists.txt +++ b/components/mqtt/host_test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) set(COMPONENTS main) diff --git a/components/newlib/test_apps/CMakeLists.txt b/components/newlib/test_apps/CMakeLists.txt index c529187100..1c4cb3414c 100644 --- a/components/newlib/test_apps/CMakeLists.txt +++ b/components/newlib/test_apps/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") set(COMPONENTS main) diff --git a/components/nvs_flash/host_test/nvs_page_test/CMakeLists.txt b/components/nvs_flash/host_test/nvs_page_test/CMakeLists.txt index 797ef37d40..7cbfe573bb 100644 --- a/components/nvs_flash/host_test/nvs_page_test/CMakeLists.txt +++ b/components/nvs_flash/host_test/nvs_page_test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) diff --git a/components/protocomm/proto/CMakeLists.txt b/components/protocomm/proto/CMakeLists.txt index 8d3e57d063..60e72871d3 100644 --- a/components/protocomm/proto/CMakeLists.txt +++ b/components/protocomm/proto/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(PROTO_COMPILER "protoc") set(PROTO_C_COMPILER "protoc-c") diff --git a/components/spi_flash/host_test/partition_api_test/CMakeLists.txt b/components/spi_flash/host_test/partition_api_test/CMakeLists.txt index e69f345495..469a614a14 100644 --- a/components/spi_flash/host_test/partition_api_test/CMakeLists.txt +++ b/components/spi_flash/host_test/partition_api_test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) set(COMPONENTS main) diff --git a/components/ulp/cmake/CMakeLists.txt b/components/ulp/cmake/CMakeLists.txt index c89bec9e01..5b98d008cf 100644 --- a/components/ulp/cmake/CMakeLists.txt +++ b/components/ulp/cmake/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include(${IDF_PATH}/tools/cmake/utilities.cmake) project(${ULP_APP_NAME} ASM C) diff --git a/components/wear_levelling/test_apps/CMakeLists.txt b/components/wear_levelling/test_apps/CMakeLists.txt index 501edff967..7d22192892 100644 --- a/components/wear_levelling/test_apps/CMakeLists.txt +++ b/components/wear_levelling/test_apps/CMakeLists.txt @@ -1,5 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) # "Trim" the build. Include the minimal set of components, main, and anything it depends on. set(COMPONENTS main) diff --git a/components/wifi_provisioning/proto/CMakeLists.txt b/components/wifi_provisioning/proto/CMakeLists.txt index 316486eba6..08e6980b54 100644 --- a/components/wifi_provisioning/proto/CMakeLists.txt +++ b/components/wifi_provisioning/proto/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) set(PROTO_COMPILER "protoc") set(PROTO_C_COMPILER "protoc-c") diff --git a/docs/en/api-guides/build-system.rst b/docs/en/api-guides/build-system.rst index 582cab8190..20b1b1036a 100644 --- a/docs/en/api-guides/build-system.rst +++ b/docs/en/api-guides/build-system.rst @@ -200,7 +200,7 @@ Minimal Example CMakeLists Minimal project:: - cmake_minimum_required(VERSION 3.5) + cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(myProject) @@ -211,7 +211,7 @@ Mandatory Parts The inclusion of these three lines, in the order shown above, is necessary for every project: -- ``cmake_minimum_required(VERSION 3.5)`` tells CMake the minimum version that is required to build the project. ESP-IDF is designed to work with CMake 3.5 or newer. This line must be the first line in the CMakeLists.txt file. +- ``cmake_minimum_required(VERSION 3.16)`` tells CMake the minimum version that is required to build the project. ESP-IDF is designed to work with CMake 3.16 or newer. This line must be the first line in the CMakeLists.txt file. - ``include($ENV{IDF_PATH}/tools/cmake/project.cmake)`` pulls in the rest of the CMake functionality to configure the project, discover all the components, etc. - ``project(myProject)`` creates the project itself, and specifies the project name. The project name is used for the final binary output files of the app - ie ``myProject.elf``, ``myProject.bin``. Only one project can be defined per CMakeLists file. @@ -255,7 +255,7 @@ For example, one of the default build specifications set is the compile option ` it should be done after ``project()``:: - cmake_minimum_required(VERSION 3.5) + cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(myProject) @@ -664,7 +664,7 @@ Special components which contain no source files, only ``Kconfig.projbuild`` and Debugging CMake =============== -For full details about CMake_ and CMake commands, see the `CMake v3.5 documentation`_. +For full details about CMake_ and CMake commands, see the `CMake v3.16 documentation`_. Some tips for debugging the ESP-IDF CMake-based build system: @@ -1066,7 +1066,7 @@ It is possible to do so by using the :ref:`build system APIs provided, i.e. xtensa or riscv, will be added below set(g1_components spi_flash freertos log heap newlib esp_system esp_hw_support) diff --git a/tools/test_apps/system/gdb_loadable_elf/CMakeLists.txt b/tools/test_apps/system/gdb_loadable_elf/CMakeLists.txt index ecbc92d435..cfed7b13e2 100644 --- a/tools/test_apps/system/gdb_loadable_elf/CMakeLists.txt +++ b/tools/test_apps/system/gdb_loadable_elf/CMakeLists.txt @@ -1,6 +1,6 @@ # The following 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) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(gdb_loadable_elf) diff --git a/tools/test_apps/system/longjmp_test/CMakeLists.txt b/tools/test_apps/system/longjmp_test/CMakeLists.txt index 5aa1050e6e..18d382fae1 100644 --- a/tools/test_apps/system/longjmp_test/CMakeLists.txt +++ b/tools/test_apps/system/longjmp_test/CMakeLists.txt @@ -1,6 +1,6 @@ # The following 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) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(longjmp_test) diff --git a/tools/test_apps/system/memprot/CMakeLists.txt b/tools/test_apps/system/memprot/CMakeLists.txt index fc362b1d4d..1e073a791d 100644 --- a/tools/test_apps/system/memprot/CMakeLists.txt +++ b/tools/test_apps/system/memprot/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) if((IDF_TARGET STREQUAL "esp32s2") OR (IDF_TARGET STREQUAL "esp32c3")) include($ENV{IDF_PATH}/tools/cmake/project.cmake) diff --git a/tools/test_apps/system/monitor_ide_integration/CMakeLists.txt b/tools/test_apps/system/monitor_ide_integration/CMakeLists.txt index 2810b4d6c1..c5e3c8798d 100644 --- a/tools/test_apps/system/monitor_ide_integration/CMakeLists.txt +++ b/tools/test_apps/system/monitor_ide_integration/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(panic) diff --git a/tools/test_apps/system/no_embedded_paths/CMakeLists.txt b/tools/test_apps/system/no_embedded_paths/CMakeLists.txt index 4edc089d8e..b4c6cfcef4 100644 --- a/tools/test_apps/system/no_embedded_paths/CMakeLists.txt +++ b/tools/test_apps/system/no_embedded_paths/CMakeLists.txt @@ -1,6 +1,6 @@ # The following 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) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(no_embedded_paths) diff --git a/tools/test_apps/system/panic/CMakeLists.txt b/tools/test_apps/system/panic/CMakeLists.txt index 2132f5b91f..2ac666b1e9 100644 --- a/tools/test_apps/system/panic/CMakeLists.txt +++ b/tools/test_apps/system/panic/CMakeLists.txt @@ -1,6 +1,6 @@ # The following 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) +cmake_minimum_required(VERSION 3.16) set(COMPONENTS main espcoredump esp_gdbstub) include($ENV{IDF_PATH}/tools/cmake/project.cmake) diff --git a/tools/test_apps/system/startup/CMakeLists.txt b/tools/test_apps/system/startup/CMakeLists.txt index 2e1c4fe175..4029f389fb 100644 --- a/tools/test_apps/system/startup/CMakeLists.txt +++ b/tools/test_apps/system/startup/CMakeLists.txt @@ -1,6 +1,6 @@ # The following 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) +cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(test_startup) diff --git a/tools/tools.json b/tools/tools.json index 3184018731..a2e9cf7981 100644 --- a/tools/tools.json +++ b/tools/tools.json @@ -730,6 +730,35 @@ "size": 39070972, "url": "https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-windows-x86_64.zip" } + }, + { + "linux-amd64": { + "sha256": "3e15dadfec8d54eda39c2f266fc1e571c1b88bf32f9d221c8a039b07234206fa", + "size": 39509848, + "url": "https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-Linux-x86_64.tar.gz" + }, + "macos": { + "sha256": "655d6ed41a1c276676ca6a1ec381c179d394420c489f2d39b3cf2ef26bfae799", + "size": 35799298, + "url": "https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-Darwin-x86_64.tar.gz" + }, + "macos-arm64": { + "sha256": "655d6ed41a1c276676ca6a1ec381c179d394420c489f2d39b3cf2ef26bfae799", + "size": 35799298, + "url": "https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-Darwin-x86_64.tar.gz" + }, + "name": "3.16.3", + "status": "supported", + "win32": { + "sha256": "4b1370b3252acda0850d26c75e9bc6b8e019daaa7978a19f5d8dc008450d3548", + "size": 32807681, + "url": "https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-win64-x64.zip" + }, + "win64": { + "sha256": "4b1370b3252acda0850d26c75e9bc6b8e019daaa7978a19f5d8dc008450d3548", + "size": 32807681, + "url": "https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-win64-x64.zip" + } } ] }, diff --git a/tools/unit-test-app/CMakeLists.txt b/tools/unit-test-app/CMakeLists.txt index 0db4c32b4a..9cab0436bc 100644 --- a/tools/unit-test-app/CMakeLists.txt +++ b/tools/unit-test-app/CMakeLists.txt @@ -1,6 +1,6 @@ # The following 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) +cmake_minimum_required(VERSION 3.16) list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/cxx/experimental/experimental_cpp_component/")