CMake cmake_minimum_required Deprecation Warning (#1546)

* Add ...3.27 to the cmake_minimum_required, and make minimum 3.13 everywhere


Signed-off-by: Ghorban M. Tavakoly <gmt3141@gmail.com>
Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3f57c8..a622f05 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.13)
+cmake_minimum_required(VERSION 3.13...3.27)
 
 # Note: this CMakeLists.txt can be used as a top-level CMakeLists.txt for the SDK itself. For all other uses
 # it is included as a subdirectory via the pico_sdk_init() method provided by pico_sdk_init.cmake
@@ -61,4 +61,3 @@
         pico_promote_common_scope_vars()
     endif()
 endif()
-
diff --git a/README.md b/README.md
index d039a3c..6388cf7 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@
       3. Setup a `CMakeLists.txt` like:
 
           ```cmake
-          cmake_minimum_required(VERSION 3.13)
+          cmake_minimum_required(VERSION 3.13...3.27)
 
           # initialize the SDK based on PICO_SDK_PATH
           # note: this must happen before project()
@@ -79,7 +79,7 @@
       1. Setup a `CMakeLists.txt` like:
 
           ```cmake
-          cmake_minimum_required(VERSION 3.13)
+          cmake_minimum_required(VERSION 3.13...3.27)
 
           # initialize pico-sdk from submodule
           # note: this must happen before project()
diff --git a/tools/elf2uf2/CMakeLists.txt b/tools/elf2uf2/CMakeLists.txt
index bc8b360..9cd7d4a 100644
--- a/tools/elf2uf2/CMakeLists.txt
+++ b/tools/elf2uf2/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.13)
+cmake_minimum_required(VERSION 3.13...3.27)
 project(elf2uf2)
 
 set(CMAKE_CXX_STANDARD 14)
@@ -9,4 +9,4 @@
 if (WIN32 AND NOT MINGW AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
     target_compile_definitions(elf2uf2 PRIVATE _CRT_SECURE_NO_WARNINGS)
 endif()
-target_link_libraries(elf2uf2 boot_uf2_headers)
\ No newline at end of file
+target_link_libraries(elf2uf2 boot_uf2_headers)
diff --git a/tools/pioasm/CMakeLists.txt b/tools/pioasm/CMakeLists.txt
index 83eb4bc..00750a7 100644
--- a/tools/pioasm/CMakeLists.txt
+++ b/tools/pioasm/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.13)
+cmake_minimum_required(VERSION 3.13...3.27)
 project(pioasm CXX)
 
 set(CMAKE_CXX_STANDARD 11)