From fd68bb8da21ce93e1779b09888239124ce27ae9b Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 28 Feb 2020 13:12:42 +0100 Subject: [PATCH] MSVC: suppress all warnings --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13150a6ca..0d3fc8030 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -198,8 +198,8 @@ elseif (WIN32) add_definitions(-D__WINDOWS__) # compile with full multicore - set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} /MP") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") + set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} /MP /w") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /w") # find Qt folder if(DEFINED QT_PATH) @@ -276,7 +276,7 @@ endif() if (C_CLANG OR C_GCC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wvla -Woverloaded-virtual -ffast-math -ftree-vectorize ${EXTRA_FLAGS}") elseif (C_MSVC) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W3 -MP ${EXTRA_FLAGS}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w -MP ${EXTRA_FLAGS}") endif() if (C_CLANG)