VS Pro doesn't choose the right default like Express, so be explicit

This commit is contained in:
spiral 2011-12-22 16:53:25 +00:00 committed by Daniel Gibson
parent 3dc6127529
commit f07999ecf2

View file

@ -195,10 +195,10 @@ elseif (MSVC)
add_definitions(/W4)
add_definitions(/wd4714) # 'function' marked as __forceinline not inlined
add_definitions(/wd4996) # 'function': was declared deprecated
set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG /Od /Zi")
set(CMAKE_C_FLAGS_RELEASE "/Ox /Oy")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Ox /Oy /Zi")
set(CMAKE_C_FLAGS_MINSIZEREL "/Ox /Oy /Os")
set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG /Od /Zi /MDd")
set(CMAKE_C_FLAGS_RELEASE "/Ox /Oy /MD")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Ox /Oy /Zi /MD")
set(CMAKE_C_FLAGS_MINSIZEREL "/Ox /Oy /Os /MD")
else()
message(FATAL_ERROR "Unsupported compiler")
endif()