mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
Fix wasi checks in multi-module CMakelists (#951)
This commit is contained in:
parent
30cb05f223
commit
3fddd3fde4
|
@ -113,8 +113,8 @@ else()
|
||||||
message(CHECK_FAIL "not found")
|
message(CHECK_FAIL "not found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT EXISTS ${WASI_SDK_DIR} OR NOT EXISTS ${WASI_TOOLCHAIN_FILE} OR NOT EXISTS ${WASI_SYS_ROOT})
|
if((NOT EXISTS ${WASI_SDK_DIR}) OR (NOT EXISTS ${WASI_TOOLCHAIN_FILE}) OR (NOT EXISTS ${WASI_SYS_ROOT}))
|
||||||
message(FATAL_ERROR "Please set the absolute path of wasi-sdk with \'cmake -DWASI_SDK_HOME=XXX\'")
|
message(FATAL_ERROR "Please set the absolute path of wasi-sdk with \'cmake -DWASI_SDK_DIR=XXX\'")
|
||||||
else()
|
else()
|
||||||
message(STATUS "WASI_SDK_DIR is ${WASI_SDK_DIR}")
|
message(STATUS "WASI_SDK_DIR is ${WASI_SDK_DIR}")
|
||||||
message(STATUS "WASI_TOOLCHAIN_FILE is ${WASI_TOOLCHAIN_FILE}")
|
message(STATUS "WASI_TOOLCHAIN_FILE is ${WASI_TOOLCHAIN_FILE}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user