Skip to content

Commit 3fddd3f

Browse files
authored
Fix wasi checks in multi-module CMakelists (bytecodealliance#951)
1 parent 30cb05f commit 3fddd3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/multi-module/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ else()
113113
message(CHECK_FAIL "not found")
114114
endif()
115115

116-
if(NOT EXISTS ${WASI_SDK_DIR} OR NOT EXISTS ${WASI_TOOLCHAIN_FILE} OR NOT EXISTS ${WASI_SYS_ROOT})
117-
message(FATAL_ERROR "Please set the absolute path of wasi-sdk with \'cmake -DWASI_SDK_HOME=XXX\'")
116+
if((NOT EXISTS ${WASI_SDK_DIR}) OR (NOT EXISTS ${WASI_TOOLCHAIN_FILE}) OR (NOT EXISTS ${WASI_SYS_ROOT}))
117+
message(FATAL_ERROR "Please set the absolute path of wasi-sdk with \'cmake -DWASI_SDK_DIR=XXX\'")
118118
else()
119119
message(STATUS "WASI_SDK_DIR is ${WASI_SDK_DIR}")
120120
message(STATUS "WASI_TOOLCHAIN_FILE is ${WASI_TOOLCHAIN_FILE}")

0 commit comments

Comments
 (0)