From e9b1e80d324d0d1ad7b429e247cddd285b254782 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 26 May 2021 15:20:47 -0700 Subject: [PATCH] wasi-sdk.cmake: Add wasi-sdk/cmake to CMAKE_MODULE_PATH Fixes: #181 --- wasi-sdk.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wasi-sdk.cmake b/wasi-sdk.cmake index 3245a4c..1a91e96 100644 --- a/wasi-sdk.cmake +++ b/wasi-sdk.cmake @@ -3,6 +3,10 @@ # This is arbitrary, AFAIK, for now. cmake_minimum_required(VERSION 3.4.0) +# Until Platform/WASI.cmake is upstream we need to inject the path to it +# into CMAKE_MODULE_PATH. +list(APPEND CMAKE_MODULE_PATH "${WASI_SDK_PREFIX}/cmake") + set(CMAKE_SYSTEM_NAME WASI) set(CMAKE_SYSTEM_VERSION 1) set(CMAKE_SYSTEM_PROCESSOR wasm32)