From 521486b817e7679f8c129a2906a0814cfb8a6e37 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sat, 30 Dec 2023 11:56:24 +0100 Subject: [PATCH] add /bigobj to fix compiling on windows --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 842b80d5..5bf7f3dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,6 +194,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE ${PRJ_DEFINITIONS} ${PRJ_WARN ) if(MSVC) + target_compile_options(${PROJECT_NAME} PUBLIC "/bigobj") target_link_options(${PROJECT_NAME} PRIVATE "/SUBSYSTEM:CONSOLE") endif(MSVC)