Merge topic 'default_extensions'

4a0485be7f cmStandardLevelResolver: Avoid unnecessary flags, fix unset level logic
29e2b85171 Tests: Simplify RunCMake.CompileFeatures introspection
fc3a1cbdd8 CompilerID: Compiler extensions default detection
2adfd95d79 CompilerID: Rename language_dialect to language_standard
00055d7779 Help: Document CMAKE_<LANG>_STANDARD_DEFAULT
a65bee4cfc Help: Document HIP standard/extensions properties and variables
a40ff1bb5a Help: Make language standard/extensions variable pages less wordy
3feff8379b Help: Generic language standard and extension variables documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6177
This commit is contained in:
Brad King
2021-10-04 16:42:40 +00:00
committed by Kitware Robot
67 changed files with 820 additions and 195 deletions
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_CUDA_EXTENSIONS
.. versionadded:: 3.8
Default value for :prop_tgt:`CUDA_EXTENSIONS` property of targets.
This variable is used to initialize the :prop_tgt:`CUDA_EXTENSIONS`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`CUDA_EXTENSIONS` target property if set when a
target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_CUDA_STANDARD
.. versionadded:: 3.8
Default value for :prop_tgt:`CUDA_STANDARD` property of targets.
This variable is used to initialize the :prop_tgt:`CUDA_STANDARD`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`CUDA_STANDARD` target property if set when a
target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
@@ -3,11 +3,8 @@ CMAKE_CUDA_STANDARD_REQUIRED
.. versionadded:: 3.8
Default value for :prop_tgt:`CUDA_STANDARD_REQUIRED` property of targets.
This variable is used to initialize the :prop_tgt:`CUDA_STANDARD_REQUIRED`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`CUDA_STANDARD_REQUIRED` target property if set
when a target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_CXX_EXTENSIONS
.. versionadded:: 3.1
Default value for :prop_tgt:`CXX_EXTENSIONS` property of targets.
This variable is used to initialize the :prop_tgt:`CXX_EXTENSIONS`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`CXX_EXTENSIONS` target property if set when a
target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_CXX_STANDARD
.. versionadded:: 3.1
Default value for :prop_tgt:`CXX_STANDARD` property of targets.
This variable is used to initialize the :prop_tgt:`CXX_STANDARD`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`CXX_STANDARD` target property if set when a target
is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
@@ -3,11 +3,8 @@ CMAKE_CXX_STANDARD_REQUIRED
.. versionadded:: 3.1
Default value for :prop_tgt:`CXX_STANDARD_REQUIRED` property of targets.
This variable is used to initialize the :prop_tgt:`CXX_STANDARD_REQUIRED`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`CXX_STANDARD_REQUIRED` target property if set when
a target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_C_EXTENSIONS
.. versionadded:: 3.1
Default value for :prop_tgt:`C_EXTENSIONS` property of targets.
This variable is used to initialize the :prop_tgt:`C_EXTENSIONS`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`C_EXTENSIONS` target property if set when a target
is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_C_STANDARD
.. versionadded:: 3.1
Default value for :prop_tgt:`C_STANDARD` property of targets.
This variable is used to initialize the :prop_tgt:`C_STANDARD`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`C_STANDARD` target property if set when a target
is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_C_STANDARD_REQUIRED
.. versionadded:: 3.1
Default value for :prop_tgt:`C_STANDARD_REQUIRED` property of targets.
This variable is used to initialize the :prop_tgt:`C_STANDARD_REQUIRED`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`C_STANDARD_REQUIRED` target property if set when
a target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+10
View File
@@ -0,0 +1,10 @@
CMAKE_HIP_EXTENSIONS
--------------------
.. versionadded:: 3.21
Default value for :prop_tgt:`HIP_EXTENSIONS` target property if set when a
target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+10
View File
@@ -0,0 +1,10 @@
CMAKE_HIP_STANDARD
------------------
.. versionadded:: 3.21
Default value for :prop_tgt:`HIP_STANDARD` target property if set when a target
is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
@@ -0,0 +1,10 @@
CMAKE_HIP_STANDARD_REQUIRED
---------------------------
.. versionadded:: 3.21
Default value for :prop_tgt:`HIP_STANDARD_REQUIRED` target property if set when
a target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+19
View File
@@ -0,0 +1,19 @@
CMAKE_<LANG>_EXTENSIONS
-----------------------
The variations are:
* :variable:`CMAKE_C_EXTENSIONS`
* :variable:`CMAKE_CXX_EXTENSIONS`
* :variable:`CMAKE_CUDA_EXTENSIONS`
* :variable:`CMAKE_HIP_EXTENSIONS`
* :variable:`CMAKE_OBJC_EXTENSIONS`
* :variable:`CMAKE_OBJCXX_EXTENSIONS`
Default values for :prop_tgt:`<LANG>_EXTENSIONS` target properties if set when
a target is created.
For supported CMake versions see the respective pages.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
@@ -0,0 +1,7 @@
CMAKE_<LANG>_EXTENSIONS_DEFAULT
-------------------------------
.. versionadded:: 3.22
Default value used when the :prop_tgt:`<LANG>_EXTENSIONS` target property is
not set. Initialized during compiler detection to the compiler's default.
+19
View File
@@ -0,0 +1,19 @@
CMAKE_<LANG>_STANDARD
---------------------
The variations are:
* :variable:`CMAKE_C_STANDARD`
* :variable:`CMAKE_CXX_STANDARD`
* :variable:`CMAKE_CUDA_STANDARD`
* :variable:`CMAKE_HIP_STANDARD`
* :variable:`CMAKE_OBJC_STANDARD`
* :variable:`CMAKE_OBJCXX_STANDARD`
Default values for :prop_tgt:`<LANG>_STANDARD` target properties if set when a
target is created.
For supported CMake versions see the respective pages.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
@@ -0,0 +1,7 @@
CMAKE_<LANG>_STANDARD_DEFAULT
-----------------------------
.. versionadded:: 3.9
The compiler's default standard for the language ``<LANG>``. Empty if the
compiler has no conception of standard levels.
@@ -0,0 +1,19 @@
CMAKE_<LANG>_STANDARD_REQUIRED
------------------------------
The variations are:
* :variable:`CMAKE_C_STANDARD_REQUIRED`
* :variable:`CMAKE_CXX_STANDARD_REQUIRED`
* :variable:`CMAKE_CUDA_STANDARD_REQUIRED`
* :variable:`CMAKE_HIP_STANDARD_REQUIRED`
* :variable:`CMAKE_OBJC_STANDARD_REQUIRED`
* :variable:`CMAKE_OBJCXX_STANDARD_REQUIRED`
Default values for :prop_tgt:`<LANG>_STANDARD_REQUIRED` target properties if
set when a target is created.
For supported CMake versions see the respective pages.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_OBJCXX_EXTENSIONS
.. versionadded:: 3.16
Default value for :prop_tgt:`OBJCXX_EXTENSIONS` property of targets.
This variable is used to initialize the :prop_tgt:`OBJCXX_EXTENSIONS`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`OBJCXX_EXTENSIONS` target property if set when a
target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_OBJCXX_STANDARD
.. versionadded:: 3.16
Default value for :prop_tgt:`OBJCXX_STANDARD` property of targets.
This variable is used to initialize the :prop_tgt:`OBJCXX_STANDARD`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`OBJCXX_STANDARD` target property if set when a
target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
@@ -3,11 +3,8 @@ CMAKE_OBJCXX_STANDARD_REQUIRED
.. versionadded:: 3.16
Default value for :prop_tgt:`OBJCXX_STANDARD_REQUIRED` property of targets.
This variable is used to initialize the :prop_tgt:`OBJCXX_STANDARD_REQUIRED`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`OBJCXX_STANDARD_REQUIRED` target property if set
when a target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_OBJC_EXTENSIONS
.. versionadded:: 3.16
Default value for :prop_tgt:`OBJC_EXTENSIONS` property of targets.
This variable is used to initialize the :prop_tgt:`OBJC_EXTENSIONS`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`OBJC_EXTENSIONS` target property if set when a
target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
+2 -5
View File
@@ -3,11 +3,8 @@ CMAKE_OBJC_STANDARD
.. versionadded:: 3.16
Default value for :prop_tgt:`OBJC_STANDARD` property of targets.
This variable is used to initialize the :prop_tgt:`OBJC_STANDARD`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`OBJC_STANDARD` target property if set when a
target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
@@ -3,11 +3,8 @@ CMAKE_OBJC_STANDARD_REQUIRED
.. versionadded:: 3.16
Default value for :prop_tgt:`OBJC_STANDARD_REQUIRED` property of targets.
This variable is used to initialize the :prop_tgt:`OBJC_STANDARD_REQUIRED`
property on all targets. See that target property for additional
information.
Default value for :prop_tgt:`OBJC_STANDARD_REQUIRED` target property if set
when a target is created.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
@@ -32,6 +32,8 @@ only for the policies that do not warn by default:
policy :policy:`CMP0116`.
* ``CMAKE_POLICY_WARNING_CMP0126`` controls the warning for
policy :policy:`CMP0126`.
* ``CMAKE_POLICY_WARNING_CMP0128`` controls the warning for
policy :policy:`CMP0128`.
This variable should not be set by a project in CMake code. Project
developers running CMake may set this variable in their cache to