From ae651b426f704d05d0d8bfc191118491d91e44b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=8D=9A=E6=96=87?= Date: Thu, 29 Jan 2026 17:15:13 +0800 Subject: [PATCH] fix: Multi-module settings not work on cmake build --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3872b2c9c7..3084ff441e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,8 @@ endif () if (NOT DEFINED WAMR_BUILD_MULTI_MODULE) # Disable multiple modules by default set (WAMR_BUILD_MULTI_MODULE 0) +else () + add_definitions(-DWASM_ENABLE_MULTI_MODULE=1) endif () if (NOT DEFINED WAMR_BUILD_LIB_PTHREAD)