mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
Merge topic 'default_extensions'
4a0485be7fcmStandardLevelResolver: Avoid unnecessary flags, fix unset level logic29e2b85171Tests: Simplify RunCMake.CompileFeatures introspectionfc3a1cbdd8CompilerID: Compiler extensions default detection2adfd95d79CompilerID: Rename language_dialect to language_standard00055d7779Help: Document CMAKE_<LANG>_STANDARD_DEFAULTa65bee4cfcHelp: Document HIP standard/extensions properties and variablesa40ff1bb5aHelp: Make language standard/extensions variable pages less wordy3feff8379bHelp: Generic language standard and extension variables documentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6177
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user