From 0141e282aae5e071c006041014c786f5ca97435f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 29 Jan 2026 02:08:27 +0800 Subject: Fixed MSVC build. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ec45f5..0e38725 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,6 +197,7 @@ endif() if (MSVC) target_compile_definitions(yue PRIVATE _SCL_SECURE_NO_WARNINGS) + target_compile_options(yue PRIVATE /Zc:__cplusplus) else () target_compile_options(yue PRIVATE -Wall -Wno-long-long -fPIC) set_source_files_properties(src/3rdParty/colib/ljson.c PROPERTIES COMPILE_FLAGS "-std=c99") -- cgit v1.2.3-55-g6feb