Fixed compile flags for tests when using MSVC.

This commit is contained in:
Neil MacIntosh 2016-11-04 14:48:22 -07:00 committed by GitHub
parent 2b51b8767a
commit 0d31109d41

View File

@ -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)