Keep fix the CMake compatibility issue (#4180)
``` 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:
@ -1,6 +1,13 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
# Yes. To solve the compatibility issue with CMAKE (>= 4.0), we need to update
|
||||
# our `cmake_minimum_required()` to 3.5. However, there are CMakeLists.txt
|
||||
# from 3rd parties that we should not alter. Therefore, in addition to
|
||||
# changing the `cmake_minimum_required()`, we should also add a configuration
|
||||
# here that is compatible with earlier versions.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 FORCE)
|
||||
|
||||
set (IWASM_AOT_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
add_definitions (-DWASM_ENABLE_AOT=1)
|
||||
|
||||
@ -1,8 +1,14 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
set (IWASM_FAST_JIT_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
# Yes. To solve the compatibility issue with CMAKE (>= 4.0), we need to update
|
||||
# our `cmake_minimum_required()` to 3.5. However, there are CMakeLists.txt
|
||||
# from 3rd parties that we should not alter. Therefore, in addition to
|
||||
# changing the `cmake_minimum_required()`, we should also add a configuration
|
||||
# here that is compatible with earlier versions.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 FORCE)
|
||||
|
||||
set (IWASM_FAST_JIT_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
add_definitions(-DWASM_ENABLE_FAST_JIT=1)
|
||||
if (WAMR_BUILD_FAST_JIT_DUMP EQUAL 1)
|
||||
add_definitions(-DWASM_ENABLE_FAST_JIT_DUMP=1)
|
||||
|
||||
@ -2,6 +2,13 @@
|
||||
# Copyright (c) 2020-2021 Alibaba Cloud
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
# Yes. To solve the compatibility issue with CMAKE (>= 4.0), we need to update
|
||||
# our `cmake_minimum_required()` to 3.5. However, there are CMakeLists.txt
|
||||
# from 3rd parties that we should not alter. Therefore, in addition to
|
||||
# changing the `cmake_minimum_required()`, we should also add a configuration
|
||||
# here that is compatible with earlier versions.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 FORCE)
|
||||
|
||||
set (LIB_RATS_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
if ("$ENV{SGX_SSL_DIR}" STREQUAL "")
|
||||
|
||||
@ -1,6 +1,13 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
# Yes. To solve the compatibility issue with CMAKE (>= 4.0), we need to update
|
||||
# our `cmake_minimum_required()` to 3.5. However, there are CMakeLists.txt
|
||||
# from 3rd parties that we should not alter. Therefore, in addition to
|
||||
# changing the `cmake_minimum_required()`, we should also add a configuration
|
||||
# here that is compatible with earlier versions.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 FORCE)
|
||||
|
||||
set (LIBC_WASI_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
set (LIBUV_VERSION v1.46.0)
|
||||
|
||||
@ -2,6 +2,13 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
# simde is a header only library
|
||||
|
||||
# Yes. To solve the compatibility issue with CMAKE (>= 4.0), we need to update
|
||||
# our `cmake_minimum_required()` to 3.5. However, there are CMakeLists.txt
|
||||
# from 3rd parties that we should not alter. Therefore, in addition to
|
||||
# changing the `cmake_minimum_required()`, we should also add a configuration
|
||||
# here that is compatible with earlier versions.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 FORCE)
|
||||
|
||||
set (LIB_SIMDE_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
add_definitions (-DWASM_ENABLE_SIMDE=1)
|
||||
|
||||
@ -1,6 +1,13 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
# Yes. To solve the compatibility issue with CMAKE (>= 4.0), we need to update
|
||||
# our `cmake_minimum_required()` to 3.5. However, there are CMakeLists.txt
|
||||
# from 3rd parties that we should not alter. Therefore, in addition to
|
||||
# changing the `cmake_minimum_required()`, we should also add a configuration
|
||||
# here that is compatible with earlier versions.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 FORCE)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
set(CJSON_SOURCE_DIR "${WAMR_ROOT_DIR}/core/deps/cjson")
|
||||
|
||||
@ -1,6 +1,13 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
# Yes. To solve the compatibility issue with CMAKE (>= 4.0), we need to update
|
||||
# our `cmake_minimum_required()` to 3.5. However, there are CMakeLists.txt
|
||||
# from 3rd parties that we should not alter. Therefore, in addition to
|
||||
# changing the `cmake_minimum_required()`, we should also add a configuration
|
||||
# here that is compatible with earlier versions.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 FORCE)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
set(LLAMA_SOURCE_DIR "${WAMR_ROOT_DIR}/core/deps/llama.cpp")
|
||||
|
||||
@ -1,6 +1,13 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
# Yes. To solve the compatibility issue with CMAKE (>= 4.0), we need to update
|
||||
# our `cmake_minimum_required()` to 3.5. However, there are CMakeLists.txt
|
||||
# from 3rd parties that we should not alter. Therefore, in addition to
|
||||
# changing the `cmake_minimum_required()`, we should also add a configuration
|
||||
# here that is compatible with earlier versions.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 FORCE)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
set(TFLITE_SOURCE_DIR "${WAMR_ROOT_DIR}/core/deps/tensorflow-src")
|
||||
|
||||
Reference in New Issue
Block a user