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:
@ -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)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user