Output command that failed, if it fails.
This commit is contained in:
parent
a86df0251f
commit
b7e3146275
|
@ -10,7 +10,8 @@ function(run_child)
|
||||||
)
|
)
|
||||||
if(FAILED)
|
if(FAILED)
|
||||||
string(REGEX REPLACE "\n" "\n " OUTPUT "${OUTPUT}")
|
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)
|
endif(FAILED)
|
||||||
endfunction(run_child)
|
endfunction(run_child)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue