* Add /W3 to compiler flags, and use the proper macro.

svn path=/trunk/; revision=52420
This commit is contained in:
Amine Khaldi 2011-06-22 13:17:37 +00:00
parent de7f3b854f
commit 5b429883dc

View file

@ -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")