Skip to content

Commit

Permalink
Add /bigobj option to fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ldpl committed Jun 10, 2023
1 parent a42fce8 commit e0c85de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/CompileFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
macro(compile_flags)
if(MSVC)
add_compile_options(/bigobj)
if(VCPKG_TARGET_TRIPLET MATCHES "-static" AND NOT VCPKG_TARGET_TRIPLET MATCHES "-md")
# Switch to MT (static) instead of MD (dynamic) binary

Expand Down

0 comments on commit e0c85de

Please sign in to comment.