Fix C4601 and enable C4602 warning for internal builds

Related to #1072
This commit is contained in:
Martin Hořeňovský
2017-10-30 12:14:20 +01:00
parent 57b4e0b64c
commit c672512979
3 changed files with 24 additions and 1 deletions

View File

@@ -310,7 +310,7 @@ if (NOT NO_SELFTEST)
target_compile_options( SelfTest PRIVATE -Wweak-vtables -Wexit-time-destructors -Wglobal-constructors -Wmissing-noreturn )
endif()
if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
target_compile_options( SelfTest PRIVATE /W4 /w44265 /WX )
target_compile_options( SelfTest PRIVATE /W4 /w44265 /WX /w44061 /w44062 )
target_compile_options( Benchmark PRIVATE /W4 )
endif()