Update cmake min to 3.14 (#4175)

3.14 is used and tested by linux mini-product

to fix

```
CMake Error at CMakeLists.txt:4 (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.
```
This commit is contained in:
liang.he
2025-04-02 07:13:53 +08:00
committed by GitHub
parent b8dde7246d
commit 159b69da38
26 changed files with 26 additions and 26 deletions

View File

@ -275,7 +275,7 @@ You can cross compile your project by using the toolchain provided by WAMR.
Assume the original `CMakeLists.txt` for `test.c` likes below:
``` cmake
cmake_minimum_required (VERSION 3.5)
cmake_minimum_required (VERSION 3.14)
project(hello_world)
add_executable(hello_world test.c)
```