summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalData/MissingData-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-17 13:31:41 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-17 13:45:09 (GMT)
commitccd29b9af849316a9361ceb8d0addb24e7158382 (patch)
tree7375d552f4c19075a7191ef4010a462fd3724c00 /Tests/RunCMake/ExternalData/MissingData-stderr.txt
parentfd8bb3427858017754d5b08a2eb1f57116feebb6 (diff)
downloadCMake-ccd29b9af849316a9361ceb8d0addb24e7158382.zip
CMake-ccd29b9af849316a9361ceb8d0addb24e7158382.tar.gz
CMake-ccd29b9af849316a9361ceb8d0addb24e7158382.tar.bz2
ExternalData: Warn on missing file instead of failing
When the primary source tree path named by a DATA{} reference does not exist, produce an AUTHOR_WARNING instead of a FATAL_ERROR. This is useful when writing a new DATA{} reference to a test reference output that has not been created yet. This way the developer can run the test, manually verify the output, and then copy it into place to provide the reference and eliminate the warning. If the named source tree path is expected to be a file but exists as a directory, we still need to produce a FATAL_ERROR.
Diffstat (limited to 'Tests/RunCMake/ExternalData/MissingData-stderr.txt')
-rw-r--r--Tests/RunCMake/ExternalData/MissingData-stderr.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/RunCMake/ExternalData/MissingData-stderr.txt b/Tests/RunCMake/ExternalData/MissingData-stderr.txt
index e794f95..39ed2f1 100644
--- a/Tests/RunCMake/ExternalData/MissingData-stderr.txt
+++ b/Tests/RunCMake/ExternalData/MissingData-stderr.txt
@@ -1,4 +1,4 @@
-CMake Error at .*/Modules/ExternalData.cmake:[0-9]+ \(message\):
+CMake Warning \(dev\) at .*/Modules/ExternalData.cmake:[0-9]+ \(message\):
Data file referenced by argument
DATA{MissingData.txt}
@@ -10,5 +10,6 @@ CMake Error at .*/Modules/ExternalData.cmake:[0-9]+ \(message\):
that does not exist as a file \(with or without an extension\)!
Call Stack \(most recent call first\):
.*
- MissingData.cmake:2 \(ExternalData_Add_Test\)
+ MissingData.cmake:4 \(ExternalData_Expand_Arguments\)
CMakeLists.txt:3 \(include\)
+This warning is for project developers. Use -Wno-dev to suppress it.