oranges_require_function_arguments¶
include (OrangesFunctionArgumentHelpers)
View the full docs for this module
.
oranges_require_function_arguments (<prefix> <args...>)
Raises a fatal error if any of the <args>
were not specified in the call to the current function.
Example usage:
function(myFunction)
cmake_parse_arguments (MY_ARGS "" "TARGET" "OPTIONS" ${ARGN})
oranges_require_function_arguments (MY_ARGS TARGET OPTIONS)
endfunction()
With the above usage, a fatal error will be raised if myFunction
is called without specifying TARGET
and at least one value for OPTIONS
.