View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013049CMakeCMakepublic2012-03-17 12:432012-03-18 06:38
Reporterkiri 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0013049: unset does not function for cached variables
DescriptionContrary to the documentation, using Set() or Unset() to unset a cached variable does not function.
Steps To ReproduceExecuting the test case below with
cmake -P
yields:
ShouldNotBeSet = 1

Test:

Set ( ShouldNotBeSet 1 CACHE INTERNAL "Test" )
Set ( ShouldNotBeSet )
Unset ( ShouldNotBeSet )
Message ("ShouldNotBeSet = " ${ShouldNotBeSet})
TagsNo tags attached.
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team