From 0d31109d41684dc69c4d6e1143e67e7b337fc360 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Fri, 4 Nov 2016 14:48:22 -0700 Subject: [PATCH] Fixed compile flags for tests when using MSVC. --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c60f597..4fd634d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,10 +15,10 @@ include_directories( add_definitions(-DGSL_THROW_ON_CONTRACT_VIOLATION) -if(MSVC14 OR MSVC12) # has the support we need +if(MSVC) # has the support we need # remove unnecessary warnings about unchecked iterators add_definitions(-D_SCL_SECURE_NO_WARNINGS) - add_compile_options(/W4) + add_compile_options(/EHsc /W4) else() include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)