mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-20 21:40:15 +08:00
Help: Update supported languages in project and enable_language
This commit is contained in:
25
Help/command/SUPPORTED_LANGUAGES.txt
Normal file
25
Help/command/SUPPORTED_LANGUAGES.txt
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Supported languages are ``C``, ``CXX`` (i.e. C++), ``CSharp`` (i.e. C#), ``CUDA``,
|
||||||
|
``OBJC`` (i.e. Objective-C), ``OBJCXX`` (i.e. Objective-C++), ``Fortran``, ``HIP``,
|
||||||
|
``ISPC``, ``Swift``, ``ASM``, ``ASM_NASM``, ``ASM_MARMASM``, ``ASM_MASM``, and ``ASM-ATT``.
|
||||||
|
|
||||||
|
.. versionadded:: 3.8
|
||||||
|
Added ``CSharp`` and ``CUDA`` support.
|
||||||
|
|
||||||
|
.. versionadded:: 3.15
|
||||||
|
Added ``Swift`` support.
|
||||||
|
|
||||||
|
.. versionadded:: 3.16
|
||||||
|
Added ``OBJC`` and ``OBJCXX`` support.
|
||||||
|
|
||||||
|
.. versionadded:: 3.18
|
||||||
|
Added ``ISPC`` support.
|
||||||
|
|
||||||
|
.. versionadded:: 3.21
|
||||||
|
Added ``HIP`` support.
|
||||||
|
|
||||||
|
.. versionadded:: 3.26
|
||||||
|
Added ``ASM_MARMASM`` support.
|
||||||
|
|
||||||
|
If enabling ``ASM``, list it last so that CMake can check whether
|
||||||
|
compilers for other languages like ``C`` work for assembly too.
|
@@ -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
|
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
|
the :command:`project` command but does not create any of the extra
|
||||||
variables that are created by the project command. Example languages
|
variables that are created by the project command.
|
||||||
are ``CXX``, ``C``, ``CUDA``, ``OBJC``, ``OBJCXX``, ``Fortran``,
|
|
||||||
``HIP``, ``ISPC``, and ``ASM``.
|
|
||||||
|
|
||||||
.. versionadded:: 3.8
|
.. include:: SUPPORTED_LANGUAGES.txt
|
||||||
Added ``CUDA`` support.
|
|
||||||
|
|
||||||
.. versionadded:: 3.16
|
By default ``C`` and ``CXX`` are enabled if no language options are given.
|
||||||
Added ``OBJC`` and ``OBJCXX`` support.
|
Specify language ``NONE``, or use the ``LANGUAGES`` keyword and list no languages,
|
||||||
|
to skip enabling any languages.
|
||||||
.. 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.
|
|
||||||
|
|
||||||
This command must be called in file scope, not in a function call.
|
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
|
Furthermore, it must be called in the highest directory common to all
|
||||||
|
@@ -102,23 +102,9 @@ The options are:
|
|||||||
Can also be specified without ``LANGUAGES`` keyword per the first, short signature.
|
Can also be specified without ``LANGUAGES`` keyword per the first, short signature.
|
||||||
|
|
||||||
Selects which programming languages are needed to build the project.
|
Selects which programming languages are needed to build the project.
|
||||||
Supported languages include ``C``, ``CXX`` (i.e. C++), ``CUDA``,
|
|
||||||
``OBJC`` (i.e. Objective-C), ``OBJCXX``, ``Fortran``, ``HIP``, ``ISPC``, and ``ASM``.
|
|
||||||
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.
|
|
||||||
|
|
||||||
.. versionadded:: 3.8
|
.. include:: SUPPORTED_LANGUAGES.txt
|
||||||
Added ``CUDA`` support.
|
|
||||||
|
|
||||||
.. versionadded:: 3.16
|
|
||||||
Added ``OBJC`` and ``OBJCXX`` support.
|
|
||||||
|
|
||||||
.. versionadded:: 3.18
|
|
||||||
Added ``ISPC`` support.
|
|
||||||
|
|
||||||
If enabling ``ASM``, list it last so that CMake can check whether
|
|
||||||
compilers for other languages like ``C`` work for assembly too.
|
|
||||||
|
|
||||||
The variables set through the ``VERSION``, ``DESCRIPTION`` and ``HOMEPAGE_URL``
|
The variables set through the ``VERSION``, ``DESCRIPTION`` and ``HOMEPAGE_URL``
|
||||||
options are intended for use as default values in package metadata and documentation.
|
options are intended for use as default values in package metadata and documentation.
|
||||||
|
Reference in New Issue
Block a user