The name "cmake_command" is overloaded

Actually, my line of thinking here has only been in the context of cmake_command(INVOKE ...) which was originally the only signature. The cmake_command(EVAL CODE ...) signature does not operate just on cmake commands but also on arbitrary cmake language code.

How about the name cmake_lang()?

  • cmake_lang(CALL <command> <args>...)
  • cmake_lang(EVAL CODE <code>...)