cmake: bump minimum required CMake version to 3.20

Raise the minimum required CMake version to 3.20,
as the build system now uses the `cmake_path()` command,
which is available starting from CMake 3.20.

Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
wangchengdong
2026-02-26 09:55:56 +08:00
committed by simbit18
parent c7b2313cdd
commit bbf311348b

View File

@@ -33,7 +33,7 @@
# Request a version available on latest Ubuntu LTS (20.04)
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.20)
# Handle newer CMake versions correctly by setting policies