mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-07 12:16:24 +00:00

``` 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. ```
15 lines
478 B
CMake
15 lines
478 B
CMake
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(wasm-apps-custom-section)
|
|
|
|
# Add -g option so there will be debugger related custom sections
|
|
add_custom_target(app.wasm ALL
|
|
COMMAND /opt/wasi-sdk/bin/clang -g -nostdlib
|
|
-Wl,--no-entry,--export-all
|
|
-o ${CMAKE_CURRENT_BINARY_DIR}/app.wasm
|
|
${CMAKE_CURRENT_LIST_DIR}/app.c
|
|
)
|