summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/execute_process/AnyCommandError.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/execute_process/AnyCommandError.cmake')
-rw-r--r--Tests/RunCMake/execute_process/AnyCommandError.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/execute_process/AnyCommandError.cmake b/Tests/RunCMake/execute_process/AnyCommandError.cmake
new file mode 100644
index 0000000..f8ec385
--- /dev/null
+++ b/Tests/RunCMake/execute_process/AnyCommandError.cmake
@@ -0,0 +1,8 @@
+execute_process(COMMAND ${CMAKE_COMMAND} -E true
+ COMMAND ${CMAKE_COMMAND} -E false
+ COMMAND ${CMAKE_COMMAND} -E false
+ COMMAND ${CMAKE_COMMAND} -E false
+ COMMAND ${CMAKE_COMMAND} -E true
+ COMMAND ${CMAKE_COMMAND} -E true
+ COMMAND_ERROR_IS_FATAL ANY
+)