Enhance cmake makefiles (#1390)

Upgrade `cmake_minimum_required` from `(VERSION 2.8)` to `(VERSION 2.9)` to
yield the warning:
"Compatibility with CMake < 2.8.12 will be removed from a future version of CMake"

Add "-Wno-unused" for CMAKE_CXX_FLAGS to yield the compilation warnings
when build LLVM JIT.

Fix the link error when code coverage is enabled.
This commit is contained in:
Wenyong Huang
2022-08-18 16:27:01 +08:00
committed by GitHub
parent 12931e7f59
commit 9cf7b88bad
17 changed files with 34 additions and 23 deletions

View File

@ -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 2.9)
if (NOT WAMR_BUILD_PLATFORM STREQUAL "windows")
project(c-api)