View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000084BatchMakeCTestpublic2003-07-15 09:352007-08-28 11:37
ReporterPetr Ferschmann 
Assigned To 
PriorityurgentSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000084: variable variable
DescriptionI 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.
TagsNo tags attached.
Attached Filesdiff file icon kerio5.diff [^] (2,733 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0000023)
Petr Ferschmann (reporter)
2003-07-15 11:48

Hmmm, I see that ${${var}} works. I made error somewhere else.

 Issue History
Date Modified Username Field Change
2007-08-28 11:35 Zack Galbreath Note Deleted: 0008235
2007-08-28 11:37 Zack Galbreath Assigned To Timothy Shead =>
2007-08-28 11:37 Zack Galbreath Summary Goodsite => variable variable
2007-08-28 11:37 Zack Galbreath Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team