summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalData/RunCMakeTest.cmake
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/RunCMakeTest.cmake
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/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/ExternalData/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalData/RunCMakeTest.cmake b/Tests/RunCMake/ExternalData/RunCMakeTest.cmake
index 93ff08f..04e3d59 100644
--- a/Tests/RunCMake/ExternalData/RunCMakeTest.cmake
+++ b/Tests/RunCMake/ExternalData/RunCMakeTest.cmake
@@ -15,6 +15,7 @@ run_cmake(LinkContentMD5)
run_cmake(LinkContentSHA1)
run_cmake(LinkDirectory1)
run_cmake(MissingData)
+run_cmake(MissingDataWithAssociated)
run_cmake(NoLinkInSource)
run_cmake(NoURLTemplates)
run_cmake(NormalData1)