summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Configure/ContinueAfterError.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Configure/ContinueAfterError.cmake')
-rw-r--r--Tests/RunCMake/Configure/ContinueAfterError.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/RunCMake/Configure/ContinueAfterError.cmake b/Tests/RunCMake/Configure/ContinueAfterError.cmake
new file mode 100644
index 0000000..d094390
--- /dev/null
+++ b/Tests/RunCMake/Configure/ContinueAfterError.cmake
@@ -0,0 +1,19 @@
+macro(m)
+ message(STATUS " start m")
+ foreach(i 1 2)
+ message(STATUS " start loop body")
+ message(SEND_ERROR "error in loop body")
+ message(STATUS " end loop body")
+ endforeach()
+ message(STATUS " end m")
+endmacro()
+
+function(f)
+ message(STATUS " start f")
+ m()
+ message(STATUS " end f")
+endfunction()
+
+message(STATUS "before f")
+f()
+message(STATUS "after f")