summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/cmake_language/defer_call_error
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-21 13:51:35 -0400
committerBrad King <brad.king@kitware.com>2020-09-29 17:12:33 -0400
commite8b0359a4318bb682c96e527de7ed7f5be02c38f (patch)
tree5ea4137b78124e4619bb4aff1856a04b729f93fd /Tests/RunCMake/cmake_language/defer_call_error
parent98805494055f8fb4afc2da9f96a487987333981a (diff)
downloadcmake-e8b0359a4318bb682c96e527de7ed7f5be02c38f.tar.gz
cmake_language: Add signature to DEFER calls to later times
Fixes: #19575
Diffstat (limited to 'Tests/RunCMake/cmake_language/defer_call_error')
-rw-r--r--Tests/RunCMake/cmake_language/defer_call_error/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/cmake_language/defer_call_error/CMakeLists.txt b/Tests/RunCMake/cmake_language/defer_call_error/CMakeLists.txt
new file mode 100644
index 0000000000..0acac69202
--- /dev/null
+++ b/Tests/RunCMake/cmake_language/defer_call_error/CMakeLists.txt
@@ -0,0 +1,2 @@
+# Error message backtrace points here but call stack shows DEFERRED execution in parent.
+cmake_language(DEFER DIRECTORY .. CALL message SEND_ERROR "Deferred Error from Subdirectory")