summaryrefslogtreecommitdiff
path: root/Modules/CheckLanguage.cmake
diff options
context:
space:
mode:
authorBartosz Kosiorek <bartosz.kosiorek@tomtom.com>2019-04-12 16:37:05 +0200
committerBartosz Kosiorek <bartosz.kosiorek@tomtom.com>2019-04-23 10:39:34 +0200
commitcb811d11cee1e2873cc2bf506cd081769e894ac3 (patch)
tree6fa97b0fb931bfbc6faaf866c3e745a0fd5ea430 /Modules/CheckLanguage.cmake
parent4ff7706f2d7eaaffe3970da5f77d18f67771a4a8 (diff)
downloadcmake-cb811d11cee1e2873cc2bf506cd081769e894ac3.tar.gz
Help: Improve description of modules
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 efa88bdab7..d096849f57 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: