endfunction — CMake 3.24.4 Documentation (original) (raw)

Ends a list of commands in a function block.

endfunction([])

See the function() command.

The optional <name> argument is supported for backward compatibility only. If used it must be a verbatim repeat of the <name> argument of the opening function command.