cmake: raise minimum required to 3.5
CMake 4.0 was released [1] which dropped compatibility with versions
older than 3.5 and causes cmake_minimum_required(3.4) to fail.
Bump the minimum required version to 3.5, which was released 9 years
ago.
[1] https://www.kitware.com/cmake-4-0-0-available-for-download/
With v4.0.0 the following build error is observed:
| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
diff --git a/br-ext/package/ftpm_optee_ext/CMakeLists.txt b/br-ext/package/ftpm_optee_ext/CMakeLists.txt
index fbf132e..8fa7474 100644
--- a/br-ext/package/ftpm_optee_ext/CMakeLists.txt
+++ b/br-ext/package/ftpm_optee_ext/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.4)
+cmake_minimum_required (VERSION 3.5)
project(ftpm_optee_ext)
# This is a dummy Makefile. When this package is invoked, the fTPM service
diff --git a/br-ext/package/linux_ftpm_mod_ext/CMakeLists.txt b/br-ext/package/linux_ftpm_mod_ext/CMakeLists.txt
index 8649465..c67e03a 100644
--- a/br-ext/package/linux_ftpm_mod_ext/CMakeLists.txt
+++ b/br-ext/package/linux_ftpm_mod_ext/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.4)
+cmake_minimum_required (VERSION 3.5)
project(linux_ftpm_mod_ext)
# This is a dummy Makefile. When this package is invoked, the TPM Kernel
diff --git a/br-ext/package/optee_os_ext/CMakeLists.txt b/br-ext/package/optee_os_ext/CMakeLists.txt
index 985158e..a178c64 100644
--- a/br-ext/package/optee_os_ext/CMakeLists.txt
+++ b/br-ext/package/optee_os_ext/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.4)
+cmake_minimum_required (VERSION 3.5)
project(optee_os_ext)
# This is a dummy Makefile. When this package is invoked, OP-TEE has been built