Browse Source

Merge topic 'patch-check-variable-exists'

e1723cab81 CheckVariableExists: Improve documentation

Acked-by: Kitware Robot <[email protected]>
Merge-request: !10122
Marc Chevrier 1 year ago
parent
commit
ed0f2d2f12
1 changed files with 4 additions and 9 deletions
  1. 4 9
      Modules/CheckVariableExists.cmake

+ 4 - 9
Modules/CheckVariableExists.cmake

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