diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index c6fdc50..8945966 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -49,7 +49,8 @@ option(BUILD_WASI_SUPPORT "Build with WASI support" OFF) if (BUILD_WASI_SUPPORT) if (WASIENV) target_compile_definitions(m3 PUBLIC d_m3HasMetaWASI) - elseif (NOT EMSCRIPTEN) + elseif (EMSCRIPTEN OR EMSCRIPTEN_LIB) + else() target_compile_definitions(m3 PUBLIC d_m3HasWASI) endif() endif()