[CMake] Program Database for Edit & Continue support

aaron.meadows at thomsonreuters.com aaron.meadows at thomsonreuters.com
Mon Feb 6 16:45:59 EST 2012


If you supply add_definitions(/ZI) it will override the /Zi default and
provide you with the edit and continue setting.

 

I verified the behavior with this cmakelists.txt:

 

With /ZI:

cmake_minimum_required (VERSION 2.8)

project(TestProj CXX)

file(WRITE  ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp "int main(int argc,
char** argc) { return 0; }")

add_definitions(/ZI)

add_executable(TestExe main.cpp)

 

Without /ZI:

cmake_minimum_required (VERSION 2.8)

project(TestProj CXX)

file(WRITE  ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp "int main(int argc,
char** argc) { return 0; }")

add_executable(TestExe main.cpp)

 

 

Here is the relevant difference in the generated TestExe.vcxproj:

 

87c87

<       <DebugInformationFormat>EditAndContinue</DebugInformationFormat>

---

>       <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>

 

 

Aaron Meadows

 

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Robert Dailey
Sent: Monday, February 06, 2012 3:20 PM
To: CMake ML
Subject: [CMake] Program Database for Edit & Continue support

 

In Visual Studio 2008, CMake generates projects to use the /Zi option,
which is just "Program Database" in visual studio. The /ZI option
enables "Program Database with Edit & Continue", allowing the edit &
continue functionality to be used. Is there a built in feature to change
the debug information format in generated VS projects?


 

---------

Robert Dailey


This email was sent to you by Thomson Reuters, the global news and information company. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120206/0fb4ab4a/attachment.htm>


More information about the CMake mailing list