mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
cmake: Treat warnings as errors on MSVC
This commit is contained in:
parent
54a57b63ad
commit
3f86354863
@ -48,6 +48,7 @@ if(OS_WINDOWS AND MSVC)
|
||||
add_compile_options(
|
||||
/MP
|
||||
/W3
|
||||
/WX
|
||||
/wd4127
|
||||
/wd4201
|
||||
/wd4456
|
||||
@ -64,6 +65,7 @@ if(OS_WINDOWS AND MSVC)
|
||||
|
||||
add_link_options(
|
||||
"LINKER:/OPT:REF"
|
||||
"LINKER:/WX"
|
||||
"$<$<NOT:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>>:LINKER\:/SAFESEH\:NO>"
|
||||
"$<$<CONFIG:DEBUG>:LINKER\:/INCREMENTAL\:NO>"
|
||||
"$<$<CONFIG:RELWITHDEBINFO>:LINKER\:/INCREMENTAL\:NO;/OPT:ICF>")
|
||||
|
Loading…
Reference in New Issue
Block a user