summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorAshley Whetter <ashley@awhetter.co.uk>2016-01-17 22:09:30 (GMT)
committerBrad King <brad.king@kitware.com>2016-01-19 15:19:42 (GMT)
commit77cd74a3ea964fa390d85c371902387e9ffc4a92 (patch)
tree1ae6b9fe22db03f0212886da31c5b7f78ea9041f /Tests/RunCMake/CommandLine/RunCMakeTest.cmake
parent249aac71d0b0022031d16963f3b46f9860919104 (diff)
downloadCMake-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/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CommandLine/RunCMakeTest.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
index e77ba1f..8068973 100644
--- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
@@ -33,6 +33,11 @@ run_cmake_command(build-bad-dir
run_cmake_command(build-bad-generator
${CMAKE_COMMAND} --build ${RunCMake_SOURCE_DIR}/cache-bad-generator)
+run_cmake_command(cache-bad-entry
+ ${CMAKE_COMMAND} --build ${RunCMake_SOURCE_DIR}/cache-bad-entry/)
+run_cmake_command(cache-empty-entry
+ ${CMAKE_COMMAND} --build ${RunCMake_SOURCE_DIR}/cache-empty-entry/)
+
function(run_BuildDir)
# Use a single build tree for a few tests without cleaning.
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/BuildDir-build)