You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
337 B
13 lines
337 B
|
|
function (CHECK_ERRORS command)
|
|
set (errors ${ARGN})
|
|
if (errors)
|
|
string (LENGTH "${command}" length)
|
|
math (EXPR count "${length} + 2")
|
|
string (REPEAT " " ${count} shift)
|
|
list (TRANSFORM errors PREPEND "${shift}")
|
|
list (JOIN errors "\n" msg)
|
|
message (FATAL_ERROR "${command}: ${msg}")
|
|
endif()
|
|
endfunction()
|