summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/LANG_EXTENSIONS.rst
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-08-28 15:00:28 (GMT)
committerRaul Tambre <raul@tambre.ee>2021-09-28 18:24:53 (GMT)
commit3feff8379b05332035319de4f733549695fcc6de (patch)
tree8c079472148ff2b873e5a3771008355f9ef4a109 /Help/prop_tgt/LANG_EXTENSIONS.rst
parent09dd52c9d2684e933a3e013abc4f6848cb1befbf (diff)
downloadCMake-3feff8379b05332035319de4f733549695fcc6de.zip
CMake-3feff8379b05332035319de4f733549695fcc6de.tar.gz
CMake-3feff8379b05332035319de4f733549695fcc6de.tar.bz2
Help: Generic language standard and extension variables documentation
Add generic documentation to improve the discoverability of language-specific ones and to make it possible to refer to them generically from other language generic documentation.
Diffstat (limited to 'Help/prop_tgt/LANG_EXTENSIONS.rst')
-rw-r--r--Help/prop_tgt/LANG_EXTENSIONS.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/Help/prop_tgt/LANG_EXTENSIONS.rst b/Help/prop_tgt/LANG_EXTENSIONS.rst
new file mode 100644
index 0000000..2add21d
--- /dev/null
+++ b/Help/prop_tgt/LANG_EXTENSIONS.rst
@@ -0,0 +1,23 @@
+<LANG>_EXTENSIONS
+-----------------
+
+The variations are:
+
+* :prop_tgt:`C_EXTENSIONS`
+* :prop_tgt:`CXX_EXTENSIONS`
+* :prop_tgt:`CUDA_EXTENSIONS`
+* :prop_tgt:`HIP_EXTENSIONS`
+* :prop_tgt:`OBJC_EXTENSIONS`
+* :prop_tgt:`OBJCXX_EXTENSIONS`
+
+These properties specify whether compiler-specific extensions are requested.
+
+These properties are initialized by the value of the
+:variable:`CMAKE_<LANG>_EXTENSIONS` variable if it is set when a target is
+created.
+
+For supported CMake versions see the respective pages.
+To control language standard versions see :prop_tgt:`<LANG>_STANDARD`.
+
+See the :manual:`cmake-compile-features(7)` manual for information on
+compile features and a list of supported compilers.