Disable warnngs as errors on Windows

This commit is contained in:
Andrew Nelless 2017-02-08 00:55:56 +00:00
parent 7d3531e3c2
commit 196fa02443
1 changed files with 1 additions and 2 deletions

View File

@ -320,12 +320,11 @@ endif()
if (WIN32)
# TODO: consider using /analyze to uncover potential bugs in the source code.
# /WX - warnings as errors (we have a problem with people checking in code with warnings).
# /FR - generate browse information (ncb files) useful for using IDE.
# /MP - use multi cores to compile.
# /D _BIND_TO_CURRENT_VCLIBS_VERSION - TODO: explain why.
# /D _SECURE_SCL=1 - find bugs with iterators.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX /FR /MP /D _BIND_TO_CURRENT_VCLIBS_VERSION=1 /D _SECURE_SCL=1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FR /MP /D _BIND_TO_CURRENT_VCLIBS_VERSION=1 /D _SECURE_SCL=1")
# /MD - use multi-core libraries.
# /O2 - get the fastest code.