summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/AtWithVariableEmptyExpansion.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Syntax/AtWithVariableEmptyExpansion.cmake')
-rw-r--r--Tests/RunCMake/Syntax/AtWithVariableEmptyExpansion.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/AtWithVariableEmptyExpansion.cmake b/Tests/RunCMake/Syntax/AtWithVariableEmptyExpansion.cmake
new file mode 100644
index 0000000..840c7f0
--- /dev/null
+++ b/Tests/RunCMake/Syntax/AtWithVariableEmptyExpansion.cmake
@@ -0,0 +1,8 @@
+# Literal since 'var' is not defined.
+set(ref "@var@")
+set(right "wrong")
+set(var "\${right}")
+
+# 'var' is dereferenced here.
+string(CONFIGURE "${ref}" output)
+message("-->${output}<--")