Merge topic 'enable_language-deduplicate'

e3c8012ccd Help: Document enable_language accepting multiple languages
b4fd385c9b cmMakefile: Dedupe languages when enabling them
66bfe14309 cmMakefile: Refactor parameter and variable names for EnableLanguage

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7426
This commit is contained in:
Brad King
2022-07-06 13:16:25 +00:00
committed by Kitware Robot
5 changed files with 67 additions and 16 deletions

View File

@@ -1,13 +1,14 @@
enable_language
---------------
Enable a language (CXX/C/OBJC/OBJCXX/Fortran/etc)
Enable languages (CXX/C/OBJC/OBJCXX/Fortran/etc)
.. code-block:: cmake
enable_language(<lang> [OPTIONAL] )
enable_language(<lang>... [OPTIONAL])
Enables support for the named language in CMake. This is
the same as the :command:`project` command but does not create any of the extra
Enables support for the named languages in CMake. This is the same as
the :command:`project` command but does not create any of the extra
variables that are created by the project command. Example languages
are ``CXX``, ``C``, ``CUDA``, ``OBJC``, ``OBJCXX``, ``Fortran``,
``HIP``, ``ISPC``, and ``ASM``.