diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-01-20 16:24:36 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2023-01-20 18:55:38 (GMT) |
commit | b787be2714662eea6ec7fe8ef30ab40d9effa792 (patch) | |
tree | 8ea47ad723661a00a34cd309afd80406d762455c /Help/command/enable_language.rst | |
parent | 06c7e88b9148fce5721335409015892b6fa4faba (diff) | |
download | CMake-b787be2714662eea6ec7fe8ef30ab40d9effa792.zip CMake-b787be2714662eea6ec7fe8ef30ab40d9effa792.tar.gz CMake-b787be2714662eea6ec7fe8ef30ab40d9effa792.tar.bz2 |
Help: Update supported languages in project and enable_language
Diffstat (limited to 'Help/command/enable_language.rst')
-rw-r--r-- | Help/command/enable_language.rst | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/Help/command/enable_language.rst b/Help/command/enable_language.rst index d9103b8..21b38ba 100644 --- a/Help/command/enable_language.rst +++ b/Help/command/enable_language.rst @@ -9,24 +9,13 @@ Enable languages (CXX/C/OBJC/OBJCXX/Fortran/etc) 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``. +variables that are created by the project command. -.. versionadded:: 3.8 - Added ``CUDA`` support. +.. include:: SUPPORTED_LANGUAGES.txt -.. versionadded:: 3.16 - Added ``OBJC`` and ``OBJCXX`` support. - -.. versionadded:: 3.18 - Added ``ISPC`` support. - -.. versionadded:: 3.21 - Added ``HIP`` support. - -If enabling ``ASM``, enable it last so that CMake can check whether -compilers for other languages like ``C`` work for assembly too. +By default ``C`` and ``CXX`` are enabled if no language options are given. +Specify language ``NONE``, or use the ``LANGUAGES`` keyword and list no languages, +to skip enabling any languages. This command must be called in file scope, not in a function call. Furthermore, it must be called in the highest directory common to all |