Explorar o código

Fix wasi checks in multi-module CMakelists (#951)

Therdel %!s(int64=4) %!d(string=hai) anos
pai
achega
3fddd3fde4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      samples/multi-module/CMakeLists.txt

+ 2 - 2
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}")