summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Configure/CustomTargetAfterError-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-30 17:39:27 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-30 17:48:33 (GMT)
commitb2282631f61361fe5f103fa7479073f2693eafcb (patch)
treeeaf50e5c0daf9383ce493a9a2024d55ad4a967f3 /Tests/RunCMake/Configure/CustomTargetAfterError-stderr.txt
parent8d1306cd1b2ab7af0360387bfbdd9beff29b480c (diff)
downloadCMake-b2282631f61361fe5f103fa7479073f2693eafcb.zip
CMake-b2282631f61361fe5f103fa7479073f2693eafcb.tar.gz
CMake-b2282631f61361fe5f103fa7479073f2693eafcb.tar.bz2
cmTarget: Do not mistake a preceding error for a CMP0049 failure
After calls to ProcessSourceItemCMP0049, check for an empty return string to detect a failure instead of trusting GetErrorOccuredFlag. The latter could have been left from a preceding non-fatal error. Extend the RunCMake.Configure test to cover a case that exposed this problem.
Diffstat (limited to 'Tests/RunCMake/Configure/CustomTargetAfterError-stderr.txt')
-rw-r--r--Tests/RunCMake/Configure/CustomTargetAfterError-stderr.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/Configure/CustomTargetAfterError-stderr.txt b/Tests/RunCMake/Configure/CustomTargetAfterError-stderr.txt
new file mode 100644
index 0000000..7ce7daf
--- /dev/null
+++ b/Tests/RunCMake/Configure/CustomTargetAfterError-stderr.txt
@@ -0,0 +1,9 @@
+^CMake Error at CustomTargetAfterError.cmake:1 \(message\):
+ Error before add_custom_target
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
++
+CMake Error at CustomTargetAfterError.cmake:3 \(message\):
+ Error after add_custom_target
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)$