MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015014 | CMake | CMake | public | 2014-07-10 12:13 | 2016-06-10 14:31 |
Reporter | Gunnar Roth | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Windows | OS | all | OS Version | |
Product Version | CMake 3.0 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015014: for better release debbuging support for /d2Zi+ option should be added for vs2012 and up | ||||
Description | since vs2012 the option /d2Zi+ is supported by compiler which created much better debug info for release build and the debugger can actually use it. there is only a slight increase in pdb size. see http://randomascii.wordpress.com/2013/09/11/debugging-optimized-codenew-in-visual-studio-2012/ [^] | ||||
Steps To Reproduce | |||||
Additional Information | this simple patch add the switch to all projects if the compiler is > 1600 --- a\share\cmake-3.0\Modules/Platform/Windows-MSVC.cmake +++ b\share\cmake-3.0\Modules/Platform/Windows-MSVC.cmake @@ -254,6 +257,11 @@ set(CMAKE_${lang}_FLAGS_INIT "${_PLATFORM_DEFINES}${_PLATFORM_DEFINES_${lang}} /D_WINDOWS /W3${_FLAGS_${lang}}") set(CMAKE_${lang}_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od ${_RTC1}") set(CMAKE_${lang}_FLAGS_RELEASE_INIT "/MD /O2 /Ob2 /D NDEBUG") set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "/MD /Zi /O2 /Ob1 /D NDEBUG") set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "/MD /O1 /Ob1 /D NDEBUG") + if(MSVC_VERSION GREATER 1600) + set(CMAKE_${lang}_FLAGS_DEBUG_INIT "${CMAKE_${lang}_FLAGS_DEBUG_INIT} /d2Zi+") + set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "${CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT} /d2Zi+") + endif() + endmacro() | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-07-10 12:13 | Gunnar Roth | New Issue | |||
2014-07-10 15:23 | Brad King | Note Added: 0036347 | |||
2014-07-10 15:56 | Gunnar Roth | Note Added: 0036348 | |||
2014-07-14 13:30 | Brad King | Note Added: 0036374 | |||
2014-07-14 13:31 | Brad King | Note Edited: 0036347 | bug_revision_view_page.php?bugnote_id=36347#r1518 | ||
2014-07-15 03:31 | Gunnar Roth | Note Added: 0036385 | |||
2014-07-15 09:17 | Brad King | Note Added: 0036395 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042583 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|