From b2ce7c879498b0f057ed12f4e69dc2a56114b3e4 Mon Sep 17 00:00:00 2001 From: l0calh05t Date: Sun, 22 Jan 2017 13:46:34 +0100 Subject: [PATCH] Fix release build on MSVC. The /RTC* flags conflict with all optimizations, therefore they should only be added when building the Debug configuration. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb1696d9..3d7d8c8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ if(MSVC) set(_COMMON_CFLAGS /W4 /wd4100 /bigobj /nologo - /RTC1 /RTCs /RTCu + $<$:/RTC1 /RTCs /RTCu> /EHsc )