MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010967 | CMake | CMake | public | 2010-07-08 18:02 | 2016-06-10 14:31 |
| Reporter | Marcus D. Hanwell | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0010967: mark_as_advanced with find_program overwrites local variables on first CMake run | ||||
| Description | The mark_as_advanced function overwrites local variables on the first CMake invocation when find_program and mark_as_advanced are called multiple times. We observed this in the Titan project where MPIEXEC was set as a local variable, find_program didn't make a cache entry as MPIEXEC was defined, but mark_as_advanced did. The subsequent run of find_program then defined a type and overwrote the local variable (leaving an empty string). I have attached two files, placed in the same directory you should be able to reproduce this error. I observed it on Windows with CMake 2.8.1 and on Linux with a fresh build of CMake master from today. | ||||
| Steps To Reproduce | |||||
| Additional Information | First CMake run, MPIEXEC 1: No changing me!, MPIEXEC 2: No changing me!, UNINITIALIZED MPIEXEC 3: , FILEPATH Second CMake run, MPIEXEC 1: No changing me!, FILEPATH MPIEXEC 2: No changing me!, FILEPATH MPIEXEC 3: No changing me!, FILEPATH | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/3235/mark_as_advanced.tgz | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-07-08 18:02 | Marcus D. Hanwell | New Issue | |||
| 2010-07-08 18:02 | Marcus D. Hanwell | File Added: mark_as_advanced.tgz | |||
| 2010-07-08 18:02 | Marcus D. Hanwell | Status | new => assigned | ||
| 2010-07-08 18:02 | Marcus D. Hanwell | Assigned To | => David Cole | ||
| 2011-10-25 22:36 | David Cole | Target Version | => CMake 2.8.7 | ||
| 2011-12-13 19:20 | David Cole | Note Added: 0027965 | |||
| 2011-12-13 19:20 | David Cole | Target Version | CMake 2.8.7 => | ||
| 2012-08-13 15:12 | David Cole | Status | assigned => backlog | ||
| 2012-08-13 15:12 | David Cole | Note Added: 0030599 | |||
| 2012-08-13 15:21 | David Cole | Assigned To | David Cole => | ||
| 2016-06-10 14:28 | Kitware Robot | Note Added: 0041726 | |||
| 2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||