Skip to content

Commit

Permalink
Disable RTC compile options for MSVC in Release mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Apr 16, 2020
1 parent 1ae22de commit 5544c3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/CompileOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ if(WIN32)
# Buffer Security Check
add_compile_options(/GS)

# Disable Run-Time Error Checks
add_compile_options(/RTC1-)
add_compile_options(/RTCc-)

# Enable optimizations
add_compile_options(/O2)
add_compile_options(/Oi)
Expand Down

0 comments on commit 5544c3f

Please sign in to comment.