This is a totally different syntax than for regular CMake files, and also is undocumented and subject to change, but it's also nice and simple. :^)
block
endblock
return
I missed these before because they weren't mentioned on the language description page of the CMake manual.