mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
CheckVariableExists: Improve documentation
This uses the lowercase command signature and refactors the description according to other similar documentation pages.
This commit is contained in:
1 file changed
+4
-9
@@ -7,19 +7,14 @@ CheckVariableExists
|
||||
|
||||
Check if the variable exists.
|
||||
|
||||
.. command:: CHECK_VARIABLE_EXISTS
|
||||
.. command:: check_variable_exists
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
CHECK_VARIABLE_EXISTS(VAR VARIABLE)
|
||||
|
||||
|
||||
::
|
||||
|
||||
VAR - the name of the variable
|
||||
VARIABLE - variable to store the result
|
||||
Will be created as an internal cache variable.
|
||||
check_variable_exists(<var> <variable>)
|
||||
|
||||
Check if the variable ``<var>`` exists and store the result in an internal
|
||||
cache variable ``<variable>``.
|
||||
|
||||
This macro is only for ``C`` variables.
|
||||
|
||||
|
||||
Reference in new issue
Block a user