From: Israël Hallé Date: Thu, 10 Jul 2014 04:05:18 +0000 (-0400) Subject: Add /MDd flag for MSVC debug target X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=fae7130baa5bd9806634870e4443de1398732a4e;p=clyne%2Fentityx.git Add /MDd flag for MSVC debug target --- diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100644 new mode 100755 index 8141a52..57fe5fb --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # /FS - Allows multiple cl.exe processes to write to the same .pdb file # /DEBUG - Enable debug during linking # /Od - Disables optimization - set(CMAKE_CXX_FLAGS_DEBUG "/Zi /FS /DEBUG /Od") + set(CMAKE_CXX_FLAGS_DEBUG "/Zi /FS /DEBUG /Od /MDd") # /Ox - Full optimization set(CMAKE_CXX_FLAGS_RELEASE "/Ox -DNDEBUG") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Ox /Zi /FS /DEBUG") @@ -109,7 +109,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # /FS - Allows multiple cl.exe processes to write to the same .pdb file # /DEBUG - Enable debug during linking # /Od - Disables optimization - set(CMAKE_CXX_FLAGS_DEBUG "/Zi /FS /DEBUG /Od") + set(CMAKE_CXX_FLAGS_DEBUG "/Zi /FS /DEBUG /Od /MDd") # /Ox - Full optimization set(CMAKE_CXX_FLAGS_RELEASE "/Ox -DNDEBUG") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Ox /Zi /FS /DEBUG")