Disable optimization in MSVC RelWithDebugInfo to make debugging easier.

develop
Anuradha Dissanayake 2013-01-19 12:21:57 +13:00
parent 35f4984b5f
commit 62ee18ad06
1 changed files with 1 additions and 0 deletions

@ -114,6 +114,7 @@ IF(UNIX)
ELSEIF(MSVC) ELSEIF(MSVC)
# for msvc, tell it to always use 8-byte pointers to member functions to avoid confusion # 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 "${CMAKE_CXX_FLAGS} /vmg /vmm /MP")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od")
ENDIF() ENDIF()
# use shared libraries for protobuf # use shared libraries for protobuf