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()