VS2015/2017 build fix and enable C++11 features

Patch by KindDragon from google/googletest#811
This commit is contained in:
Arkadiy Shapkin
2017-05-03 13:30:11 +03:00
committed by BhaaL
parent 0fcc625b56
commit dda7e2cc2c
2 changed files with 6 additions and 4 deletions

View File

@ -81,8 +81,6 @@ macro(config_compiler_and_linker)
# Suppress "unreachable code" warning on VS 2012 and later.
# http://stackoverflow.com/questions/3232669 explains the issue.
set(cxx_base_flags "${cxx_base_flags} -wd4702")
endif()
if (NOT (MSVC_VERSION GREATER 1900)) # 1900 is Visual Studio 2015
# BigObj required for tests.
set(cxx_base_flags "${cxx_base_flags} -bigobj")
endif()