Browse Source

Merge topic 'doc-src-var-xref' into release-4.0

8905157694 Help: Link CMAKE_CURRENT_LIST_(DIR|FILE|LINE) to/from FUNCTION-equivalents

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10338
pull/376/head
Brad King 5 months ago
committed by Kitware Robot
parent
commit
95a0a16229
  1. 5
      Help/variable/CMAKE_CURRENT_FUNCTION_LIST_DIR.rst
  2. 5
      Help/variable/CMAKE_CURRENT_FUNCTION_LIST_FILE.rst
  3. 5
      Help/variable/CMAKE_CURRENT_FUNCTION_LIST_LINE.rst
  4. 3
      Help/variable/CMAKE_CURRENT_LIST_DIR.rst
  5. 3
      Help/variable/CMAKE_CURRENT_LIST_FILE.rst
  6. 2
      Help/variable/CMAKE_CURRENT_LIST_LINE.rst

5
Help/variable/CMAKE_CURRENT_FUNCTION_LIST_DIR.rst

@ -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`.

5
Help/variable/CMAKE_CURRENT_FUNCTION_LIST_FILE.rst

@ -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`.

5
Help/variable/CMAKE_CURRENT_FUNCTION_LIST_LINE.rst

@ -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`.

3
Help/variable/CMAKE_CURRENT_LIST_DIR.rst

@ -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`.

3
Help/variable/CMAKE_CURRENT_LIST_FILE.rst

@ -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`.

2
Help/variable/CMAKE_CURRENT_LIST_LINE.rst

@ -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`.
Loading…
Cancel
Save