mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
Help: Link CMAKE_CURRENT_LIST_(DIR|FILE|LINE) to/from FUNCTION-equivalents
This commit is contained in:
@@ -39,5 +39,6 @@ The above example can be written in the more concise and more robust form:
|
||||
endfunction()
|
||||
|
||||
See also :variable:`CMAKE_CURRENT_FUNCTION`,
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_FILE` and
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_LINE`.
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_FILE`,
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_LINE` and
|
||||
:variable:`CMAKE_CURRENT_LIST_DIR`.
|
||||
|
@@ -7,5 +7,6 @@ When executing code inside a :command:`function`, this variable
|
||||
contains the full path to the listfile that defined the current function.
|
||||
|
||||
See also :variable:`CMAKE_CURRENT_FUNCTION`,
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_DIR` and
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_LINE`.
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_DIR`,
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_LINE` and
|
||||
:variable:`CMAKE_CURRENT_LIST_FILE`.
|
||||
|
@@ -8,5 +8,6 @@ contains the line number in the listfile where the current function
|
||||
was defined.
|
||||
|
||||
See also :variable:`CMAKE_CURRENT_FUNCTION`,
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_DIR` and
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_FILE`.
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_DIR`,
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_FILE` and
|
||||
:variable:`CMAKE_CURRENT_LIST_LINE`.
|
||||
|
@@ -14,4 +14,5 @@ function is the directory of the file invoking the bottom-most entry
|
||||
on the call stack, not the directory of the file containing the macro
|
||||
or function definition.
|
||||
|
||||
See also :variable:`CMAKE_CURRENT_LIST_FILE`.
|
||||
See also :variable:`CMAKE_CURRENT_LIST_FILE` and
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_DIR`.
|
||||
|
@@ -12,4 +12,5 @@ value. Therefore the value of the variable inside a macro or function
|
||||
is the file invoking the bottom-most entry on the call stack, not the
|
||||
file containing the macro or function definition.
|
||||
|
||||
See also :variable:`CMAKE_PARENT_LIST_FILE`.
|
||||
See also :variable:`CMAKE_PARENT_LIST_FILE` and
|
||||
:variable:`CMAKE_CURRENT_FUNCTION_LIST_FILE`.
|
||||
|
@@ -9,3 +9,5 @@ cmake.
|
||||
If CMake is currently processing deferred calls scheduled by
|
||||
the :command:`cmake_language(DEFER)` command, this variable
|
||||
evaluates to ``DEFERRED`` instead of a specific line number.
|
||||
|
||||
See also :variable:`CMAKE_CURRENT_FUNCTION_LIST_LINE`.
|
||||
|
Reference in New Issue
Block a user