Skip to content

Commit 5544c3f

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/CompileOptions.cmake

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

123+
# Disable Run-Time Error Checks
124+
add_compile_options(/RTC1-)
125+
add_compile_options(/RTCc-)
126+
123127
# Enable optimizations
124128
add_compile_options(/O2)
125129
add_compile_options(/Oi)

0 commit comments

Comments
 (0)