Fix release build on MSVC.

The /RTC* flags conflict with all optimizations, therefore they should only be added when building the Debug configuration.
This commit is contained in:
l0calh05t 2017-01-22 13:46:34 +01:00 committed by Johannes S. Mueller-Roemer
parent 5fa7ba487e
commit b2ce7c8794
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ if(MSVC)
set(_COMMON_CFLAGS
/W4 /wd4100
/bigobj /nologo
/RTC1 /RTCs /RTCu
$<$<CONFIG:Debug>:/RTC1 /RTCs /RTCu>
/EHsc
)