Skip to content

Commit

Permalink
Enabling bigobj for MSVC compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
kataklinger committed Mar 6, 2024
1 parent e192e62 commit 2638ec1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample/simple/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ add_executable(simple main.cpp)

target_link_libraries(simple PRIVATE warnings gal20_lib)

if(MSVC)
target_compile_options(simple PRIVATE /bigobj)
endif()

target_compile_features(simple PRIVATE cxx_std_20)
set_target_properties(simple PROPERTIES
CXX_EXTENSIONS NO
Expand Down

0 comments on commit 2638ec1

Please sign in to comment.