diff options
author | Ashley Whetter <ashley@awhetter.co.uk> | 2016-01-17 22:09:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-01-19 15:19:42 (GMT) |
commit | 77cd74a3ea964fa390d85c371902387e9ffc4a92 (patch) | |
tree | 1ae6b9fe22db03f0212886da31c5b7f78ea9041f /Tests/RunCMake/CommandLine/cache-bad-entry | |
parent | 249aac71d0b0022031d16963f3b46f9860919104 (diff) | |
download | CMake-77cd74a3ea964fa390d85c371902387e9ffc4a92.zip CMake-77cd74a3ea964fa390d85c371902387e9ffc4a92.tar.gz CMake-77cd74a3ea964fa390d85c371902387e9ffc4a92.tar.bz2 |
Print line number of cache parse errors (#11109)
Track the line number while parsing `CMakeCache.txt` files and include
it in a parse failure error message.
Diffstat (limited to 'Tests/RunCMake/CommandLine/cache-bad-entry')
-rw-r--r-- | Tests/RunCMake/CommandLine/cache-bad-entry/CMakeCache.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/cache-bad-entry/CMakeCache.txt b/Tests/RunCMake/CommandLine/cache-bad-entry/CMakeCache.txt new file mode 100644 index 0000000..75cd7c2 --- /dev/null +++ b/Tests/RunCMake/CommandLine/cache-bad-entry/CMakeCache.txt @@ -0,0 +1,10 @@ +# This is a comment + +// That was an empty line. This isn't. +EMPTY_LINE:BOOL=FALSE + +// Uhoh! Here it comes +BAD ENTRY + +// This is fine +GOOD_ENTRY:BOOL=TRUE |