blob: c2ee8ad59ac310e05c7baf6dd492c1701765fe66 [file]
set(args)
math(EXPR last_arg_index "${CMAKE_ARGC} - 1")
foreach(arg_index RANGE 4 ${last_arg_index})
list(APPEND args "${CMAKE_ARGV${arg_index}}")
endforeach()
execute_process(
COMMAND "${CMAKE_ARGV3}" ${args}
COMMAND_ERROR_IS_FATAL ANY
)