summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/BracketWarn-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-08-06 19:48:28 (GMT)
committerBrad King <brad.king@kitware.com>2013-08-08 17:26:28 (GMT)
commitbf73264694234c4e82b31689b64b8a33d61552a9 (patch)
tree4d32a31f13043804a9dbc1357bf250c94241a39a /Tests/RunCMake/Syntax/BracketWarn-stderr.txt
parent58e524165d44e672e391cca261d9f7dd723d2c70 (diff)
downloadCMake-bf73264694234c4e82b31689b64b8a33d61552a9.zip
CMake-bf73264694234c4e82b31689b64b8a33d61552a9.tar.gz
CMake-bf73264694234c4e82b31689b64b8a33d61552a9.tar.bz2
Warn about unquoted arguments that look like long brackets
In the future CMake will introduce Lua-style long bracket syntax. Warn about unquoted arguments that in the future will be treated as opening long brackets. Teach the RunCMake.Syntax test to cover such cases and ensure that the warning appears.
Diffstat (limited to 'Tests/RunCMake/Syntax/BracketWarn-stderr.txt')
-rw-r--r--Tests/RunCMake/Syntax/BracketWarn-stderr.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/BracketWarn-stderr.txt b/Tests/RunCMake/Syntax/BracketWarn-stderr.txt
new file mode 100644
index 0000000..4a9cca6
--- /dev/null
+++ b/Tests/RunCMake/Syntax/BracketWarn-stderr.txt
@@ -0,0 +1,35 @@
+CMake Warning \(dev\) at CMakeLists.txt:3 \(include\):
+ Syntax Warning in cmake code at
+
+ .*/Tests/RunCMake/Syntax/BracketWarn.cmake:1:16
+
+ A future version of CMake may treat unquoted argument:
+
+ \[\[
+
+ as an opening long bracket. Double-quote the argument.
+This warning is for project developers. Use -Wno-dev to suppress it.
+
+CMake Warning \(dev\) at CMakeLists.txt:3 \(include\):
+ Syntax Warning in cmake code at
+
+ .*/Tests/RunCMake/Syntax/BracketWarn.cmake:1:19
+
+ A future version of CMake may treat unquoted argument:
+
+ \[=\[
+
+ as an opening long bracket. Double-quote the argument.
+This warning is for project developers. Use -Wno-dev to suppress it.
+
+CMake Warning \(dev\) at CMakeLists.txt:3 \(include\):
+ Syntax Warning in cmake code at
+
+ .*/Tests/RunCMake/Syntax/BracketWarn.cmake:1:27
+
+ A future version of CMake may treat unquoted argument:
+
+ \[==\[x
+
+ as an opening long bracket. Double-quote the argument.
+This warning is for project developers. Use -Wno-dev to suppress it.