enabled bigobj for msvc cmake build

This commit is contained in:
silver 2017-10-12 21:15:03 +02:00 committed by Arvid Norberg
parent 85b6d98454
commit 2e5e7bb8dd
1 changed files with 2 additions and 0 deletions

View File

@ -333,6 +333,8 @@ if (MSVC)
target_compile_options(torrent-rasterbar PUBLIC /Zc:wchar_t /Zc:forScope)
# for multi-core compilation
target_compile_options(torrent-rasterbar PUBLIC /MP)
# increase the number of sections for obj files
target_compile_options(torrent-rasterbar PUBLIC /bigobj)
endif()
target_compile_definitions(torrent-rasterbar PUBLIC _FILE_OFFSET_BITS=64)