summaryrefslogtreecommitdiffstats
path: root/Modules/CheckLanguage.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-04-24 14:23:28 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-04-24 14:23:39 (GMT)
commitc3ef56795102516c2d5c86b5d90808e854cda514 (patch)
treecf936bd47f30935ce5f7a8222246ebe9d3e86c9a /Modules/CheckLanguage.cmake
parenta7eb2877b87117fb02ae4d3b730361defca4a96d (diff)
parentcb811d11cee1e2873cc2bf506cd081769e894ac3 (diff)
downloadCMake-c3ef56795102516c2d5c86b5d90808e854cda514.zip
CMake-c3ef56795102516c2d5c86b5d90808e854cda514.tar.gz
CMake-c3ef56795102516c2d5c86b5d90808e854cda514.tar.bz2
Merge topic 'update-documentation'
cb811d11ce Help: Improve description of modules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3222
Diffstat (limited to 'Modules/CheckLanguage.cmake')
-rw-r--r--Modules/CheckLanguage.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake
index efa88bd..d096849 100644
--- a/Modules/CheckLanguage.cmake
+++ b/Modules/CheckLanguage.cmake
@@ -13,11 +13,11 @@ Usage:
check_language(<lang>)
-where <lang> is a language that may be passed to enable_language()
-such as "Fortran". If CMAKE_<lang>_COMPILER is already defined the
-check does nothing. Otherwise it tries enabling the language in a
-test project. The result is cached in CMAKE_<lang>_COMPILER as the
-compiler that was found, or NOTFOUND if the language cannot be
+where ``<lang>`` is a language that may be passed to :command:`enable_language`
+such as ``Fortran``. If :variable:`CMAKE_<LANG>_COMPILER` is already defined
+the check does nothing. Otherwise it tries enabling the language in a
+test project. The result is cached in :variable:`CMAKE_<LANG>_COMPILER`
+as the compiler that was found, or ``NOTFOUND`` if the language cannot be
enabled.
Example: