1 2 3 4 5 6
set("\${varname}" bar) set(var foo) set(ref "@\${var}@") string(CONFIGURE "${ref}" output) message("-->${output}<--")