MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0006167 | CMake | CMake | public | 2007-12-16 19:32 | 2008-04-21 13:22 |
| Reporter | Rodolfo Schulz de Lima | ||||
| Assigned To | |||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0006167: [Patch] empty CMAKE_<LANG>_FLAGS gets initialized with space | ||||
| Description | CMake initializes CMAKE_CXX_FLAGS (and CMAKE_C_FLAGS) with a space even if it's empty. This could surprise someone that might think that if(CMAKE_CXX_FLAGS) should be false. I've traced down the bug and have created a patch, which is attached to this bug report. | ||||
| Steps To Reproduce | |||||
| Additional Information | If you run the following CMakeLists.txt: message(X ${CMAKE_CXX_FLAGS} X) cmake outputs: X X instead of: XX even if environment's CXXFLAGS is empty. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/1258/spaces_lang_flags.diff | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2007-12-16 19:32 | Rodolfo Schulz de Lima | New Issue | |||
| 2007-12-16 19:33 | Rodolfo Schulz de Lima | File Added: spaces_lang_flags.diff | |||
| 2007-12-17 12:04 | Bill Hoffman | Note Added: 0009950 | |||
| 2007-12-17 12:04 | Bill Hoffman | Status | new => closed | ||
| 2007-12-17 12:04 | Bill Hoffman | Resolution | open => fixed | ||
| 2008-04-21 13:22 | Bill Hoffman | Note Added: 0011460 | |||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||