View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0008228 | CMake | CMake | public | 2008-12-04 18:47 | 2016-06-10 14:30 | ||||
Reporter | mwoehlke | ||||||||
Assigned To | Bill Hoffman | ||||||||
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 | 0008228: cmake allows creating variables that cannot be dereferenced | ||||||||
Description | Test CMakeLists.txt: set(!BANG wacky CACHE STRING "" FORCE) set("var with space" wacky CACHE STRING "" FORCE) Both of these will create entries in the cache. However, as evidenced by: message(STATUS "This is !BANG: ${!BANG}") message(STATUS "This is var with space: ${var with space}") ...such variables cannot be expanded (attempting to do so throws an error). CMake should preferably not allow such variables to be created. | ||||||||
Additional Information | I discovered this while implementing a work-around to bug 8226, basically with the autotools-ism 'if ("!${foo}" MATCHES "bar")'. Therefore I would prefer for such variables to remain invalid :-). | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0041476) 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 |
2008-12-04 18:47 | mwoehlke | New Issue | |
2008-12-15 10:40 | Bill Hoffman | Status | new => assigned |
2008-12-15 10:40 | Bill Hoffman | Assigned To | => Bill Hoffman |
2016-06-10 14:27 | Kitware Robot | Note Added: 0041476 | |
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 |