aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <none@none>2010-08-09 19:19:02 +0200
committerShauren <none@none>2010-08-09 19:19:02 +0200
commit79dcd5859a8fbe83d6d95b6be0658f6c15de984a (patch)
treeabe2adbd6926fbe08adb6b7f983ca9626ccfbd3f
parentc132b5d08d2a230f383d58c6bf50145de07c2f0b (diff)
BuildSystem/Windows: Force creating debug information in Release build if DEBUG is selected in cmake
--HG-- branch : trunk
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e8d0375f55..c5d639800f0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -219,7 +219,12 @@ if( DEBUG )
add_definitions(-DTRINITY_DEBUG)
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-g)
- endif()
+ elseif(MSVC)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Zi")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /DEBUG")
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /DEBUG")
+ endif()
else()
message("* Build in debug-mode : No (default)")
endif()