build: apply MSVC /bigobj option to c/cpp files only (#11423)

This commit is contained in:
Jeff Bolz 2025-01-25 20:10:03 -06:00 committed by GitHub
parent 4a75d19376
commit f35726c2fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,8 @@ endif()
if (MSVC)
add_compile_options("$<$<COMPILE_LANGUAGE:C>:/utf-8>")
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/utf-8>")
add_compile_options(/bigobj)
add_compile_options("$<$<COMPILE_LANGUAGE:C>:/bigobj>")
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>")
endif()
#