From 1e5a2f92c3f71e9886510c6755e1748df4e3f3ff Mon Sep 17 00:00:00 2001 From: Martina Date: Mon, 26 Jul 2021 02:30:56 +0200 Subject: [PATCH] feature/update_cmake: Update of outdated CMake version 3.16.4->3.20.3 and CCache version 3.7->4.3 in tools.json Closes https://github.com/espressif/esp-idf/issues/7083 --- .../cmake/idf_as_lib/CMakeLists.txt | 4 +-- tools/cmake/project.cmake | 2 +- tools/tools.json | 36 +++++++++---------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/build_system/cmake/idf_as_lib/CMakeLists.txt b/examples/build_system/cmake/idf_as_lib/CMakeLists.txt index 4df6092608..0d5ea95b1c 100644 --- a/examples/build_system/cmake/idf_as_lib/CMakeLists.txt +++ b/examples/build_system/cmake/idf_as_lib/CMakeLists.txt @@ -23,6 +23,8 @@ else() add_subdirectory(stubs/spi_flash) endif() +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(elf_file ${CMAKE_PROJECT_NAME}.elf) add_executable(${elf_file} main.c) @@ -35,5 +37,3 @@ if("${TARGET}" STREQUAL "esp32") else() target_link_libraries(${elf_file} stub::esp32 stub::freertos stub::spi_flash) endif() - -set(CMAKE_EXPORT_COMPILE_COMMANDS 1) diff --git a/tools/cmake/project.cmake b/tools/cmake/project.cmake index ee10942650..c88a3eca13 100644 --- a/tools/cmake/project.cmake +++ b/tools/cmake/project.cmake @@ -273,7 +273,7 @@ macro(project project_name) __project(${project_name} C CXX ASM) # Generate compile_commands.json (needs to come after project call). - set(CMAKE_EXPORT_COMPILE_COMMANDS 1) + set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Since components can import third-party libraries, the original definition of project() should be restored # before the call to add components to the build. diff --git a/tools/tools.json b/tools/tools.json index f369b52370..38370a7a4d 100644 --- a/tools/tools.json +++ b/tools/tools.json @@ -403,26 +403,26 @@ "versions": [ { "linux-amd64": { - "sha256": "12a577aa04b6639766ae908f33cf70baefc11ac4499b8b1c8812d99f05fb6a02", - "size": 39517697, - "url": "https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-Linux-x86_64.tar.gz" + "sha256": "97bf730372f9900b2dfb9206fccbcf92f5c7f3b502148b832e77451aa0f9e0e6", + "size": 43877847, + "url": "https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3-Linux-x86_64.tar.gz" }, "macos": { - "sha256": "f60e0ef96da48725cd8da7d6abe83cd9501167aa51625c90dd4d31081a631279", - "size": 35802699, - "url": "https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-Darwin-x86_64.tar.gz" + "sha256": "5f72dba3aa5f3800fb29ab6115ae0b31f10bdb2aad66204e14c98f6ac7e6b6ed", + "size": 66311879, + "url": "https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3-macos-universal.tar.gz" }, - "name": "3.16.4", + "name": "3.20.3", "status": "recommended", "win32": { - "sha256": "f37963bcfcebdfe5864926a3623f6c21220c35790c39cd65e64bd521cbb39c55", - "size": 32812189, - "url": "https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-win64-x64.zip" + "sha256": "e276cf7fbb3e3e88bc666e183bc3ddaceb143a4c83fb357b1dbb1a26fd6e4ea2", + "size": 36995168, + "url": "https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3-windows-x86_64.zip" }, "win64": { - "sha256": "f37963bcfcebdfe5864926a3623f6c21220c35790c39cd65e64bd521cbb39c55", - "size": 32812189, - "url": "https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-win64-x64.zip" + "sha256": "e276cf7fbb3e3e88bc666e183bc3ddaceb143a4c83fb357b1dbb1a26fd6e4ea2", + "size": 36995168, + "url": "https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3-windows-x86_64.zip" } } ] @@ -591,7 +591,7 @@ "description": "Ccache (compiler cache)", "export_paths": [ [ - "" + "ccache-4.3-windows-64" ] ], "export_vars": { @@ -619,12 +619,12 @@ "version_regex": "ccache version ([0-9.]+)", "versions": [ { - "name": "3.7", + "name": "4.3", "status": "recommended", "win64": { - "sha256": "37e833f3f354f1145503533e776c1bd44ec2e77ff8a2476a1d2039b0b10c78d6", - "size": 142401, - "url": "https://dl.espressif.com/dl/ccache-3.7-w64.zip" + "sha256": "a9cacae73c3906d8193456328bee74f7748cb1559a32eaced9ee78eadd416105", + "size": 1550675, + "url": "https://github.com/ccache/ccache/releases/download/v4.3/ccache-4.3-windows-64.zip" } } ]