Skip to content

Commit 159b69d

Browse files
authored
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. ```
1 parent b8dde72 commit 159b69d

File tree

26 files changed

+26
-26
lines changed

26 files changed

+26
-26
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2019 Intel Corporation. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
cmake_minimum_required (VERSION 3.0)
4+
cmake_minimum_required (VERSION 3.14)
55

66
option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)
77

build-scripts/esp-idf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can build an ESP-IDF project with wasm-micro-runtime as a component:
1111
- In the newly created project folder edit the `CMakeList.txt`:
1212

1313
```
14-
cmake_minimum_required(VERSION 3.5)
14+
cmake_minimum_required(VERSION 3.14)
1515
1616
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
1717

core/iwasm/libraries/lib-socket/lib_socket_wasi.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2019 Intel Corporation. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
cmake_minimum_required (VERSION 2.8...3.16)
4+
cmake_minimum_required (VERSION 3.14)
55

66
project(socket_wasi_ext LANGUAGES C)
77

doc/build_wasm_app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ You can cross compile your project by using the toolchain provided by WAMR.
275275
Assume the original `CMakeLists.txt` for `test.c` likes below:
276276

277277
``` cmake
278-
cmake_minimum_required (VERSION 3.5)
278+
cmake_minimum_required (VERSION 3.14)
279279
project(hello_world)
280280
add_executable(hello_world test.c)
281281
```

product-mini/app-samples/hello-world-cmake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2019 Intel Corporation. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
cmake_minimum_required (VERSION 3.5)
4+
cmake_minimum_required (VERSION 3.14)
55
project(hello_world)
66

77
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -Wno-unused-command-line-argument")

product-mini/platforms/esp-idf/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

44
# from ESP-IDF 4.0 examples/build_system/cmake/idf_as_lib
5-
cmake_minimum_required(VERSION 3.5)
5+
cmake_minimum_required(VERSION 3.14)
66

77
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
88

product-mini/platforms/freebsd/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2019 Intel Corporation. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
cmake_minimum_required (VERSION 2.9)
4+
cmake_minimum_required (VERSION 3.14)
55

66
project (iwasm)
77

product-mini/platforms/linux-sgx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2019 Intel Corporation. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
cmake_minimum_required (VERSION 2.9)
4+
cmake_minimum_required (VERSION 3.14)
55

66
project (iwasm)
77

product-mini/platforms/linux-sgx/CMakeLists_minimal.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2019 Intel Corporation. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
cmake_minimum_required (VERSION 2.9)
4+
cmake_minimum_required (VERSION 3.14)
55

66
project (iwasm)
77

product-mini/platforms/riot/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2020 TU Bergakademie Freiberg Karl Fessel
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

5-
cmake_minimum_required(VERSION 3.8.2)
5+
cmake_minimum_required(VERSION 3.14)
66

77
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
88

0 commit comments

Comments
 (0)