From 9c6df0a3f8afd8a796f7fc9f84d262133753beb2 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 29 Jan 2026 08:58:25 +0800 Subject: Added missing flag. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 87f3d76..42d84d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,6 +111,10 @@ if (IS_TERMUX) target_compile_definitions(libyue PRIVATE YUE_NO_WATCHER) endif() +if (MSVC) + target_compile_definitions(libyue PRIVATE YUE_BUILD_AS_DLL) +endif () + add_executable(yue src/yuescript/ast.cpp src/yuescript/parser.cpp -- cgit v1.2.3-55-g6feb