From 5b429883dc352b58c72a68bda5e35aa33315a14d Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 22 Jun 2011 13:17:37 +0000 Subject: [PATCH] [CMAKE] * Add /W3 to compiler flags, and use the proper macro. svn path=/trunk/; revision=52420 --- reactos/cmake/msvc.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/cmake/msvc.cmake b/reactos/cmake/msvc.cmake index ff474e42aa5..a972e155189 100644 --- a/reactos/cmake/msvc.cmake +++ b/reactos/cmake/msvc.cmake @@ -17,9 +17,10 @@ if(ARCH MATCHES i386) add_definitions(/DWIN32 /D_WINDOWS) endif() -add_definitions(/X /GR- /GS- /Zl) add_definitions(/Dinline=__inline /D__STDC__=1) +add_compiler_flags(/X /GR- /GS- /Zl /W3) + if(${_MACHINE_ARCH_FLAG} MATCHES X86) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB")