From 0df482f2e38f9a3190b7181d1be8e28e70c1b39a Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Fri, 11 Jul 2025 01:22:14 +0000 Subject: [PATCH] cmake: Bump minimum cmake to 3.20.0 Zephyr uses cmake 3.20.0 as the minimum version for a long time. Set the same requirement here to avoid possible issues in future. Fixes zephyrproject-rtos/zephyr#92679 Signed-off-by: Flavio Ceolin Signed-off-by: Tomi Fontanilles --- CMakeLists.txt | 2 +- programs/test/cmake_package/CMakeLists.txt | 2 +- programs/test/cmake_package_install/CMakeLists.txt | 2 +- programs/test/cmake_subproject/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f195847a67..e554a8d874 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ # We specify a minimum requirement of 3.10.2, but for now use 3.5.1 here # until our infrastructure catches up. -cmake_minimum_required(VERSION 3.5.1) +cmake_minimum_required(VERSION 3.20.0) include(CMakePackageConfigHelpers) diff --git a/programs/test/cmake_package/CMakeLists.txt b/programs/test/cmake_package/CMakeLists.txt index f498cf931d..d0da11beb8 100644 --- a/programs/test/cmake_package/CMakeLists.txt +++ b/programs/test/cmake_package/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5.1) +cmake_minimum_required(VERSION 3.20.0) # # Simulate configuring and building Mbed TLS as the user might do it. We'll diff --git a/programs/test/cmake_package_install/CMakeLists.txt b/programs/test/cmake_package_install/CMakeLists.txt index 6937af4f66..90cafcd0b1 100644 --- a/programs/test/cmake_package_install/CMakeLists.txt +++ b/programs/test/cmake_package_install/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5.1) +cmake_minimum_required(VERSION 3.20.0) # # Simulate configuring and building Mbed TLS as the user might do it. We'll diff --git a/programs/test/cmake_subproject/CMakeLists.txt b/programs/test/cmake_subproject/CMakeLists.txt index 78bd5e792d..08421ecb60 100644 --- a/programs/test/cmake_subproject/CMakeLists.txt +++ b/programs/test/cmake_subproject/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5.1) +cmake_minimum_required(VERSION 3.20.0) # Test the target renaming support by adding a prefix to the targets built set(MBEDTLS_TARGET_PREFIX subproject_test_)