|
@@ -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
|
|
|
|
|
-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.
|
|
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
|