mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +08:00
Help: Minor grammar cleanups of CMAKE_CURRENT_FUNCTION* docs
This commit is contained in:
@@ -95,7 +95,7 @@ Unlike a function, the :variable:`CMAKE_CURRENT_FUNCTION`,
|
|||||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_DIR`,
|
:variable:`CMAKE_CURRENT_FUNCTION_LIST_DIR`,
|
||||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_FILE`,
|
:variable:`CMAKE_CURRENT_FUNCTION_LIST_FILE`,
|
||||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_LINE` variables are not
|
:variable:`CMAKE_CURRENT_FUNCTION_LIST_LINE` variables are not
|
||||||
set for macro.
|
set for a macro.
|
||||||
|
|
||||||
.. _`Argument Caveats`:
|
.. _`Argument Caveats`:
|
||||||
|
|
||||||
|
@@ -2,5 +2,5 @@ CMAKE_CURRENT_FUNCTION
|
|||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
When executing code inside a :command:`function`, this variable
|
When executing code inside a :command:`function`, this variable
|
||||||
contains the name of the current function. It can be used for
|
contains the name of the current function. It can be useful for
|
||||||
diagnostic or debug messages.
|
diagnostic or debug messages.
|
||||||
|
@@ -2,7 +2,7 @@ CMAKE_CURRENT_FUNCTION_LIST_DIR
|
|||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
When executing code inside a :command:`function`, this variable
|
When executing code inside a :command:`function`, this variable
|
||||||
contains the full directory of the listfile defining the current function.
|
contains the full directory of the listfile that defined the current function.
|
||||||
|
|
||||||
It is quite common practice in CMake that modules use some additional files
|
It is quite common practice in CMake that modules use some additional files
|
||||||
(e.g., templates to render). And the code typically did the following:
|
(e.g., templates to render). And the code typically did the following:
|
||||||
|
@@ -2,4 +2,4 @@ CMAKE_CURRENT_FUNCTION_LIST_FILE
|
|||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
When executing code inside a :command:`function`, this variable
|
When executing code inside a :command:`function`, this variable
|
||||||
contains the full path to the listfile declaring a current function.
|
contains the full path to the listfile that defined the current function.
|
||||||
|
@@ -2,4 +2,5 @@ CMAKE_CURRENT_FUNCTION_LIST_LINE
|
|||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
When executing code inside a :command:`function`, this variable
|
When executing code inside a :command:`function`, this variable
|
||||||
contains the line number in the listfile where a current function has defined.
|
contains the line number in the listfile where the current function
|
||||||
|
was defined.
|
||||||
|
Reference in New Issue
Block a user