MantisBT - BatchMake
View Issue Details
0000084BatchMakeCTestpublic2003-07-15 09:352007-08-28 11:37
Petr Ferschmann 
 
urgentminoralways
closedno change required 
 
 
0000084: variable variable
I need variable variable. ${${var}} doesn't work. So I created STRING(VALUE <input var> <output var>

example code:
SET(VAR "VAR")
SET(MYVAR "Hello")
STRING(VALUE MY${VAR} VAR2)
MESSAGE("${VAR2}")

It is not ideal but it follows style of CMake.

Patch is attached.
No tags attached.
diff kerio5.diff (2,733) 1969-12-31 19:00
https://public.kitware.com/Bug/file/6/kerio5.diff
Issue History
2007-08-28 11:35Zack GalbreathNote Deleted: 0008235
2007-08-28 11:37Zack GalbreathAssigned ToTimothy Shead =>
2007-08-28 11:37Zack GalbreathSummaryGoodsite => variable variable
2007-08-28 11:37Zack GalbreathStatusresolved => closed

Notes
(0000023)
Petr Ferschmann   
2003-07-15 11:48   
Hmmm, I see that ${${var}} works. I made error somewhere else.