mirror of https://github.com/Kitware/CMake.git
Browse Source
ENH: Improve argument parsing error messages
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.pull/1/head

5 changed files with 79 additions and 22 deletions
-
25Source/cmCommandArgumentParserHelper.cxx
-
1Source/cmCommandArgumentParserHelper.h
-
62Source/cmMakefile.cxx
-
12Source/cmPolicies.cxx
-
1Source/cmPolicies.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue