From 2919f5d06e030e5ec5e84874cd961f8a8a2c0896 Mon Sep 17 00:00:00 2001 From: "liang.he@intel.com" Date: Tue, 8 Apr 2025 14:16:32 +0800 Subject: [PATCH] Update cmake min to 3.14 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 value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. ``` --- samples/simple/CMakeLists.txt | 2 +- test-tools/host-tool/CMakeLists.txt | 2 +- wamr-sdk/app/CMakeLists.txt | 2 +- wamr-sdk/runtime/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/simple/CMakeLists.txt b/samples/simple/CMakeLists.txt index 4e5e95d..1ac6bcb 100644 --- a/samples/simple/CMakeLists.txt +++ b/samples/simple/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright (C) 2019 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -cmake_minimum_required (VERSION 2.9) +cmake_minimum_required (VERSION 3.14) project (simple) diff --git a/test-tools/host-tool/CMakeLists.txt b/test-tools/host-tool/CMakeLists.txt index 3555de9..25afbb6 100644 --- a/test-tools/host-tool/CMakeLists.txt +++ b/test-tools/host-tool/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # -cmake_minimum_required (VERSION 2.9) +cmake_minimum_required (VERSION 3.14) project (host-agent) if (NOT CMAKE_BUILD_TYPE) diff --git a/wamr-sdk/app/CMakeLists.txt b/wamr-sdk/app/CMakeLists.txt index 5f667e0..bc42307 100644 --- a/wamr-sdk/app/CMakeLists.txt +++ b/wamr-sdk/app/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright (C) 2019 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.14) project(app-framework) SET (CMAKE_C_FLAGS "-O3") diff --git a/wamr-sdk/runtime/CMakeLists.txt b/wamr-sdk/runtime/CMakeLists.txt index f5c786a..9595a1c 100644 --- a/wamr-sdk/runtime/CMakeLists.txt +++ b/wamr-sdk/runtime/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright (C) 2019 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.14) project(runtime-sdk) SET (CMAKE_C_FLAGS "-O3")