Output command that failed, if it fails.

This commit is contained in:
Bill Hoffman 2009-08-11 22:01:49 -04:00
parent a86df0251f
commit b7e3146275
1 changed files with 2 additions and 1 deletions

View File

@ -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)