diff options
author | Israël Hallé <israel.halle@shopify.com> | 2014-07-10 00:05:18 -0400 |
---|---|---|
committer | Israël Hallé <israel.halle@shopify.com> | 2014-07-10 00:05:18 -0400 |
commit | fae7130baa5bd9806634870e4443de1398732a4e (patch) | |
tree | 9a8ece7d3dca4d60b55ac1cd3ec3fd90cb2f65ae /CMakeLists.txt | |
parent | 34a9e088b0c109ba65bfc777273d4c37a07e1bc6 (diff) |
Add /MDd flag for MSVC debug target
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-x[-rw-r--r--] | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8141a52..57fe5fb 100644..100755 --- 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") |