cmake_command: Add command to INVOKE other commands by name

Fixes: #18392
This commit is contained in:
Cristian Adam
2020-01-26 18:31:48 +01:00
committed by Brad King
parent 3276f85fd7
commit 54e4f2ad45
29 changed files with 164 additions and 0 deletions

View File

@@ -44,11 +44,15 @@ can be invoked through any of
foo()
Foo()
FOO()
cmake_command(INVOKE foo)
and so on. However, it is strongly recommended to stay with the
case chosen in the function definition. Typically functions use
all-lowercase names.
The :command:`cmake_command(INVOKE ...)` command can also be used to invoke the
function.
Arguments
^^^^^^^^^