MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0012377 | CMake | CMake | public | 2011-08-01 10:17 | 2012-12-20 11:36 | |||||
Reporter | Johan Björk | |||||||||
Assigned To | David Cole | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | Apple Mac | OS | OS X | OS Version | 10.4.10 | |||||
Product Version | CMake 2.8.5 | |||||||||
Target Version | CMake 2.8.6 | Fixed in Version | CMake 2.8.6 | |||||||
Summary | 0012377: CMake misparses -g0 as enable debug | |||||||||
Description | cmGlobalXCodeGenerator.cpp missparses -g0 (disable debug) as ENABLE, see following code: std::string gflagc = this->ExtractFlag("-g", cflags); // put back gdwarf-2 if used since there is no way // to represent it in the gui, but we still want debug yes if(gflagc == "-gdwarf-2") { cflags += " "; cflags += gflagc; } std::string gflag = this->ExtractFlag("-g", flags); if(gflag == "-gdwarf-2") { flags += " "; flags += gflag; } const char* debugStr = "YES"; if(gflagc.size() ==0 && gflag.size() == 0) { debugStr = "NO"; } | |||||||||
Steps To Reproduce | Set -g0 in CXX or C flags. | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | 0001-xcode-Honor-g0-to-disable-debugging.patch (2,353) 2011-08-18 13:35 https://public.kitware.com/Bug/file/4011/0001-xcode-Honor-g0-to-disable-debugging.patch | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2011-08-01 10:17 | Johan Björk | New Issue | ||||||||
2011-08-02 10:53 | Sean McBride | Note Added: 0027149 | ||||||||
2011-08-18 13:35 | Johan Björk | File Added: 0001-xcode-Honor-g0-to-disable-debugging.patch | ||||||||
2011-08-18 13:35 | Johan Björk | Note Added: 0027240 | ||||||||
2011-08-31 11:08 | David Cole | Assigned To | => David Cole | |||||||
2011-08-31 11:08 | David Cole | Status | new => assigned | |||||||
2011-08-31 11:08 | David Cole | Target Version | => CMake 2.8.6 | |||||||
2011-09-06 15:33 | David Cole | Note Added: 0027384 | ||||||||
2011-09-06 15:33 | David Cole | Status | assigned => resolved | |||||||
2011-09-06 15:33 | David Cole | Fixed in Version | => CMake 2.8.6 | |||||||
2011-09-06 15:33 | David Cole | Resolution | open => fixed | |||||||
2012-02-06 06:07 | David Cole | Note Added: 0028494 | ||||||||
2012-02-06 06:07 | David Cole | Status | resolved => closed | |||||||
2012-12-20 11:36 | David Cole | Relationship added | related to 0013354 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|