From adfeb212082455a79c38f9cd9a98e0ad86bfa783 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Mon, 29 Apr 2024 10:24:42 +0800 Subject: [PATCH] for msvc --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48632f60..c6482c1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,8 @@ if(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++20") add_compile_options(/utf-8) ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) +add_compile_options("$<$:/bigobj>") +add_compile_options("$<$:/Zc:__cplusplus>") else() if(NOT LINKLIBC++)