Skip to content

Commit 874c89b

Browse files
Windows Debug builds add flag "/WX" to convert warnings into errors
1 parent 8f7a81e commit 874c89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommonCompilerConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ if(MSVC)
163163
# Debug Only: /Od /Zi /sdl /RTC1 /MDd
164164
set(INTERNAL_CXX_FLAGS /permissive- /W3 /Gm- /EHsc /FC /nologo /Zc:__cplusplus
165165
$<$<CONFIG:Release>:/O2 /Oi /Gy /GL /MD>
166-
$<$<CONFIG:Debug>:/Ob0 /Od /Zi /sdl /RTC1 /MDd>)
166+
$<$<CONFIG:Debug>:/Ob0 /Od /Zi /sdl /WX /RTC1 /MDd>)
167167
#linker flags
168168
if("${BITNESS}" STREQUAL "32")
169169
set(machine "-MACHINE:X86")

0 commit comments

Comments
 (0)