From f07999ecf2b533d62017944aa79a26c8f78bac6f Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 22 Dec 2011 16:53:25 +0000 Subject: [PATCH] VS Pro doesn't choose the right default like Express, so be explicit --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 96ceb59..4fbc7c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()