From 6a7dc1b9c3bc1cc0d91a2b1154c792c154740d91 Mon Sep 17 00:00:00 2001 From: d3x0r Date: Thu, 21 Apr 2016 13:36:01 -0700 Subject: [PATCH] CMAKE_CXX_FLAGS is overwritten when later adding /Esc option. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1c39bef..36ae4389 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ endfunction(buildExamples) # Compiler specific stuff IF(MSVC) - SET(CMAKE_CXX_FLAGS "/EHsc") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") ENDIF(MSVC) IF(WIN32)