From b7e3146275f3e8f9f376c150031d8bcc39a37439 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 11 Aug 2009 22:01:49 -0400 Subject: Output command that failed, if it fails. --- Tests/CTestUpdateCommon.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/CTestUpdateCommon.cmake b/Tests/CTestUpdateCommon.cmake index 9b6960f..b680b8e 100644 --- a/Tests/CTestUpdateCommon.cmake +++ b/Tests/CTestUpdateCommon.cmake @@ -10,7 +10,8 @@ function(run_child) ) if(FAILED) string(REGEX REPLACE "\n" "\n " OUTPUT "${OUTPUT}") - message(FATAL_ERROR "Child failed (${FAILED}), output is\n ${OUTPUT}\n") + message(FATAL_ERROR "Child failed (${FAILED}), output is\n ${OUTPUT}\n" + "Command = [${ARGN}]\n") endif(FAILED) endfunction(run_child) -- cgit v0.12