MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0009168 | CMake | Modules | public | 2009-06-16 19:07 | 2016-06-10 14:30 |
| Reporter | gnu_lorien | ||||
| Assigned To | Miguel Figueroa | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0009168: Bug with wxWidgets_CXX_FLAGS | ||||
| Description | I came across a problem when porting to another Unix platform today with wxWidgets_CXX_FLAGS. There's a bug in how it parses and removes definitions from wx-config's cxxflags output. I suspect this class of bug applies to all pkg-config like and other gcc compile flags parsing routines. In essence, the following two regex replaces need to be included when trying to remove definitions: STRING(REGEX REPLACE ";-D[^;]+$" "" wxWidgets_CXX_FLAGS "${wxWidgets_CXX_FLAGS}") STRING(REGEX REPLACE "^-D[^;]+$" "" wxWidgets_CXX_FLAGS "${wxWidgets_CXX_FLAGS}") The first properly removes definitions that exist at the end of the flags. The second properly removes a definition if it is the only component of the C[XX]FLAGS. I suspect a similar problem exists for includes when includes are the only component of the flags. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-06-16 19:07 | gnu_lorien | New Issue | |||
| 2009-06-17 12:19 | Miguel Figueroa | Status | new => assigned | ||
| 2009-06-17 12:19 | Miguel Figueroa | Assigned To | => Miguel Figueroa | ||
| 2010-07-20 05:29 | liberforce | Note Added: 0021429 | |||
| 2010-08-28 12:15 | Kovarththanan Rajaratnam | Category | CMake => Modules | ||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041569 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||