From 030b66211b49097fada98cbf8f1d49c2f538c33b Mon Sep 17 00:00:00 2001 From: Sebastien Lussier Date: Fri, 16 Mar 2012 21:54:48 -0400 Subject: [PATCH] [MSVC] Reverted back to warning level 3 to avoid warnings in Qt headers (can't be fixed easily with our current CMake setup) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b993fd18d..0f074653ad 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,8 +191,8 @@ if(MSVC) # Remove definition of _DEBUG as it might conflict with libs we're linking with string(REGEX REPLACE "/D_DEBUG" "/DNDEBUG" ${flag_var} "${${flag_var}}") - # Force to always compile with warning level 4 - string(REGEX REPLACE "/W[0-4]" "/W4" ${flag_var} "${${flag_var}}") + # Force to always compile with warning level 3 + string(REGEX REPLACE "/W[0-4]" "/W3" ${flag_var} "${${flag_var}}") endforeach(flag_var) # Avoid warning during link