cmake/Tests/RunCMake/Syntax/AtWithVariableEmptyExpansionAtOnly.cmake

9 lines
204 B
CMake
Raw Normal View History

2015-04-27 22:25:09 +02:00
# Literal since 'var' is not defined.
set(ref "@var@")
set(right "wrong")
set(var "\${right}")
# 'var' is dereferenced, but now 'right'
string(CONFIGURE "${ref}" output @ONLY)
message("-->${output}<--")