mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-05 07:10:26 +00:00
Help: MSVC now has C standard level flags
This commit is contained in:
committed by
Brad King
parent
7a04f45722
commit
48645cabe3
@@ -8,8 +8,8 @@ The C standard whose features are requested to build this target.
|
|||||||
This property specifies the C standard whose features are requested
|
This property specifies the C standard whose features are requested
|
||||||
to build this target. For some compilers, this results in adding a
|
to build this target. For some compilers, this results in adding a
|
||||||
flag such as ``-std=gnu11`` to the compile line. For compilers that
|
flag such as ``-std=gnu11`` to the compile line. For compilers that
|
||||||
have no notion of a C standard level, such as all versions of
|
have no notion of a C standard level, such as Microsoft Visual C++ before
|
||||||
MSVC known as of this version of CMake, this has no effect.
|
VS 16.7, this property has no effect.
|
||||||
|
|
||||||
Supported values are ``90``, ``99`` and ``11``.
|
Supported values are ``90``, ``99`` and ``11``.
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ If this property is set to ``ON``, then the value of the
|
|||||||
:prop_tgt:`C_STANDARD` target property is treated as a requirement. If this
|
:prop_tgt:`C_STANDARD` target property is treated as a requirement. If this
|
||||||
property is ``OFF`` or unset, the :prop_tgt:`C_STANDARD` target property is
|
property is ``OFF`` or unset, the :prop_tgt:`C_STANDARD` target property is
|
||||||
treated as optional and may "decay" to a previous standard if the requested is
|
treated as optional and may "decay" to a previous standard if the requested is
|
||||||
not available. For compilers that have no notion of a standard level, such as
|
not available. For compilers that have no notion of a C standard level, such
|
||||||
MSVC 1800 (Visual Studio 2013) and lower, this has no effect.
|
as Microsoft Visual C++ before VS 16.7, this property has no effect.
|
||||||
|
|
||||||
See the :manual:`cmake-compile-features(7)` manual for information on
|
See the :manual:`cmake-compile-features(7)` manual for information on
|
||||||
compile features and a list of supported compilers.
|
compile features and a list of supported compilers.
|
||||||
|
|||||||
Reference in New Issue
Block a user