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-boun...@cmake.org [mailto:cmake-boun...@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.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to