summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-24 12:51:19 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-24 12:51:19 (GMT)
commitd524f3675e455335eceb94eb7dce7fdb014abf58 (patch)
tree6ad0c5fcfd12df536f6d1f4bcafcc2fd641dac94 /Source/cmPolicies.h
parent4a1317de364979ff8850ce02360aa54c54064214 (diff)
downloadCMake-d524f3675e455335eceb94eb7dce7fdb014abf58.zip
CMake-d524f3675e455335eceb94eb7dce7fdb014abf58.tar.gz
CMake-d524f3675e455335eceb94eb7dce7fdb014abf58.tar.bz2
ENH: Improve argument parsing error messages
Previously error messages produced by parsing of command argument variable references, such as bad $KEY{VAR} syntax or a bad escape sequence, did not provide good context information. Errors parsing arguments inside macro invocations gave no context at all. Furthermore, some errors such as a missing close curly "${VAR" would be reported but build files would still be generated. These changes teach CMake to report errors with good context information for all command argument parsing problems. Policy CMP0010 is introduced so that existing projects that built despite such errors will continue to work.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 06079b0..02f7276 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -50,6 +50,7 @@ public:
CMP0007, // list command handling of empty elements
CMP0008, // Full-path libraries must be a valid library file name
CMP0009, // GLOB_RECURSE should not follow symlinks by default
+ CMP0010, // Bad variable reference syntax is an error
// Always the last entry. Useful mostly to avoid adding a comma
// the last policy when adding a new one.