15 lines
396 B
Diff
15 lines
396 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 2624479..4496860 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -727,6 +727,9 @@ function(add_library_unity NAME MODE)
|
|
enable_unity_build(${NAME} SRCS)
|
|
endif()
|
|
add_library(${NAME} OBJECT ${SRCS})
|
|
+ if(MSVC)
|
|
+ target_compile_options(${NAME} PRIVATE /bigobj)
|
|
+ endif()
|
|
endfunction()
|
|
|
|
function(disable_target_warnings NAME)
|