View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0021429) liberforce (reporter) 2010-07-20 05:29 |
I have the same problem with CMake 2.4.7 under mingw. When replaced in the g++ command line, wxWidgets_CXX_FLAGS contains spurious '\ ' (backslash + space). I seems that spaces in wxWidgets_CXX_FLAGS are escaped when the variable is evaluated. However, these characters do not appear when the showing its content with the MESSAGE cmake command. |
(0041569) Kitware Robot (administrator) 2016-06-10 14:27 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |