Skip to content

Commit d561edb

Browse files
committed
Disable RTC compile options for MSVC in Release mode.
1 parent 1ae22de commit d561edb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/CompileOptions.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ if(WIN32)
120120
# Buffer Security Check
121121
add_compile_options(/GS)
122122

123+
# Disable Run-Time Error Checks
124+
add_compile_options(/GR-)
125+
123126
# Enable optimizations
124127
add_compile_options(/O2)
125128
add_compile_options(/Oi)

0 commit comments

Comments
 (0)