From 3fddd3fde45ba419c80a105d20cb48ce5cfdbaa4 Mon Sep 17 00:00:00 2001 From: Therdel <14974231+Therdel@users.noreply.github.com> Date: Thu, 13 Jan 2022 02:41:02 +0000 Subject: [PATCH] Fix wasi checks in multi-module CMakelists (#951) --- samples/multi-module/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/multi-module/CMakeLists.txt b/samples/multi-module/CMakeLists.txt index 73c5e65f..e3edd047 100644 --- a/samples/multi-module/CMakeLists.txt +++ b/samples/multi-module/CMakeLists.txt @@ -113,8 +113,8 @@ else() message(CHECK_FAIL "not found") endif() -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\'") +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_DIR=XXX\'") else() message(STATUS "WASI_SDK_DIR is ${WASI_SDK_DIR}") message(STATUS "WASI_TOOLCHAIN_FILE is ${WASI_TOOLCHAIN_FILE}")