From 62ee18ad06fb553f8b7a2b15d3c7df3fd9797e8f Mon Sep 17 00:00:00 2001 From: Anuradha Dissanayake Date: Sat, 19 Jan 2013 12:21:57 +1300 Subject: [PATCH] Disable optimization in MSVC RelWithDebugInfo to make debugging easier. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13e7bcf71..5b6f2f5da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,6 +114,7 @@ IF(UNIX) ELSEIF(MSVC) # for msvc, tell it to always use 8-byte pointers to member functions to avoid confusion SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /vmg /vmm /MP") + SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od") ENDIF() # use shared libraries for protobuf