From 4737f94f9c2eb372b14335688f4858240d63b5b9 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Thu, 17 Aug 2023 11:16:18 +0300 Subject: [PATCH] tools: fix CMake deprecation warnings Running a build with a newer CMake version results in a deprecation warning from the tools subdirectory [13/108] Performing configure step for 'PioasmBuild' loading initial cache file /.../build/pico-sdk/src/rp2_common/pico_cyw43_driver/pioasm/tmp/PioasmBuild-cache-Release.cmake CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. Raise the minimum version requirement for the tools to the same version that is required in the top-level CMakeLists.txt anyway. --- tools/elf2uf2/CMakeLists.txt | 2 +- tools/pioasm/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/elf2uf2/CMakeLists.txt b/tools/elf2uf2/CMakeLists.txt index fb5625f51..bc8b360e9 100644 --- a/tools/elf2uf2/CMakeLists.txt +++ b/tools/elf2uf2/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.13) project(elf2uf2) set(CMAKE_CXX_STANDARD 14) diff --git a/tools/pioasm/CMakeLists.txt b/tools/pioasm/CMakeLists.txt index 322408aba..14f2c94b4 100644 --- a/tools/pioasm/CMakeLists.txt +++ b/tools/pioasm/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.4) +cmake_minimum_required(VERSION 3.13) project(pioasm CXX) set(CMAKE_CXX_STANDARD 11)