mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fixed compile flags for tests when using MSVC.
This commit is contained in:
parent
2b51b8767a
commit
0d31109d41
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user