| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0013049 | CMake | CMake | public | 2012-03-17 12:43 | 2012-03-18 06:38 | ||||
| Reporter | kiri | ||||||||
| Assigned To | |||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | no change required | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0013049: unset does not function for cached variables | ||||||||
| Description | Contrary to the documentation, using Set() or Unset() to unset a cached variable does not function. | ||||||||
| Steps To Reproduce | Executing the test case below with cmake -P yields: ShouldNotBeSet = 1 Test: Set ( ShouldNotBeSet 1 CACHE INTERNAL "Test" ) Set ( ShouldNotBeSet ) Unset ( ShouldNotBeSet ) Message ("ShouldNotBeSet = " ${ShouldNotBeSet}) | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0028926) Alex Neundorf (developer) 2012-03-17 15:01 |
Use unset(... CACHE) to remove a variable from the cache. set() and unset() without "CACHE" work on the normal variables, which are like a layer of variables on top of the cache variables. |
|
(0028927) kiri (reporter) 2012-03-17 16:03 |
Unset ( variable CACHE ) works. The documentation for unset() looks adequate also. I would like to mark this bug as resolved but see no option to in Mantis. |
|
(0028928) Alex Neundorf (developer) 2012-03-18 06:38 |
I can do it, maybe you don't have permissions to do it as reporter. So, marked as resolved with no change required, as requested. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2012-03-17 12:43 | kiri | New Issue | |
| 2012-03-17 15:01 | Alex Neundorf | Note Added: 0028926 | |
| 2012-03-17 16:03 | kiri | Note Added: 0028927 | |
| 2012-03-18 06:38 | Alex Neundorf | Note Added: 0028928 | |
| 2012-03-18 06:38 | Alex Neundorf | Status | new => closed |
| 2012-03-18 06:38 | Alex Neundorf | Resolution | open => no change required |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |