MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0004308 | CMake | CMake | public | 2007-01-12 18:49 | 2016-06-10 14:30 |
| Reporter | Pierre | ||||
| Assigned To | Brad King | ||||
| Priority | low | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0004308: passing "0" or zero (0) configure_file as value is not possible | ||||
| Description | [using 2.4.6] configure_file uses the 0==off 1==on rule to decide whether or not a line should be commented. See the example below. Using "0 " "0x0" or 0x0 work (making this issue only an aesthetic problem :) Example: SET(GD_VERSION_MAJOR "2") SET(GD_VERSION_MINOR "0") SET(GD_VERSION_PATCH "34") configure_file(config.h.cmake test.h) ----------config.h.cmake #cmakedefine GD_VERSION_MAJOR ${GD_VERSION_MAJOR} #cmakedefine GD_VERSION_MINOR ${GD_VERSION_MINOR} #cmakedefine GD_VERSION_PATCH ${GD_VERSION_PATCH} ---------- test.h #define GD_VERSION_MAJOR 2 /* #undef GD_VERSION_MINOR 0 */ #define GD_VERSION_PATCH 34 | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-08-13 10:44 | Brad King | Status | assigned => backlog | ||
| 2012-08-13 10:44 | Brad King | Note Added: 0030564 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041341 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||