summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-13 16:03:29 (GMT)
committerBrad King <brad.king@kitware.com>2022-10-13 16:04:00 (GMT)
commitf9fd27a5ee6785500ed6c06a09dfd88a6d52fe75 (patch)
treef9e882d574c0efea032cd6572bd9083902a9f1f7 /Help/command
parentffad2c44d735d83e41710edfe1df3b88bb98e877 (diff)
downloadCMake-f9fd27a5ee6785500ed6c06a09dfd88a6d52fe75.zip
CMake-f9fd27a5ee6785500ed6c06a09dfd88a6d52fe75.tar.gz
CMake-f9fd27a5ee6785500ed6c06a09dfd88a6d52fe75.tar.bz2
Help: Fix typo that crashes older pygments lexers
In commit cb14ae2b87 (try_compile: Add SOURCE_FROM_{ARG,VAR}, 2022-09-21, v3.25.0-rc1~94^2~2) we accidentally added unbalanced closing `]` characters in the `try_compile` and `try_run` signatures. Fixes: #24053
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/try_compile.rst8
-rw-r--r--Help/command/try_run.rst8
2 files changed, 8 insertions, 8 deletions
diff --git a/Help/command/try_compile.rst b/Help/command/try_compile.rst
index 3a6b26a..9e9f39f 100644
--- a/Help/command/try_compile.rst
+++ b/Help/command/try_compile.rst
@@ -59,10 +59,10 @@ Try Compiling Source Files
.. code-block:: cmake
try_compile(<resultVar>
- <SOURCES <srcfile...>] |
- SOURCE_FROM_CONTENT <name> <content>] |
- SOURCE_FROM_VAR <name> <var>] |
- SOURCE_FROM_FILE <name> <path> >...
+ <SOURCES <srcfile...> |
+ SOURCE_FROM_CONTENT <name> <content> |
+ SOURCE_FROM_VAR <name> <var> |
+ SOURCE_FROM_FILE <name> <path> >...
[NO_CACHE]
[CMAKE_FLAGS <flags>...]
[COMPILE_DEFINITIONS <defs>...]
diff --git a/Help/command/try_run.rst b/Help/command/try_run.rst
index be7c734..cd41a4b 100644
--- a/Help/command/try_run.rst
+++ b/Help/command/try_run.rst
@@ -13,10 +13,10 @@ Try Compiling and Running Source Files
.. code-block:: cmake
try_run(<runResultVar> <compileResultVar>
- <SOURCES <srcfile...>] |
- SOURCE_FROM_CONTENT <name> <content>] |
- SOURCE_FROM_VAR <name> <var>] |
- SOURCE_FROM_FILE <name> <path> >...
+ <SOURCES <srcfile...> |
+ SOURCE_FROM_CONTENT <name> <content> |
+ SOURCE_FROM_VAR <name> <var> |
+ SOURCE_FROM_FILE <name> <path> >...
[NO_CACHE]
[CMAKE_FLAGS <flags>...]
[COMPILE_DEFINITIONS <defs>...]