Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fred Baksik
CMake
Commits
48645cab
Commit
48645cab
authored
4 years ago
by
Michael Hirsch
Committed by
Brad King
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Help: MSVC now has C standard level flags
parent
7a04f457
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Help/prop_tgt/C_STANDARD.rst
+2
-2
2 additions, 2 deletions
Help/prop_tgt/C_STANDARD.rst
Help/prop_tgt/C_STANDARD_REQUIRED.rst
+2
-2
2 additions, 2 deletions
Help/prop_tgt/C_STANDARD_REQUIRED.rst
with
4 additions
and
4 deletions
Help/prop_tgt/C_STANDARD.rst
+
2
−
2
View file @
48645cab
...
...
@@ -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
to build this target. For some compilers, this results in adding a
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
MSVC known as of this version of CMake, this
has no effect.
have no notion of a C standard level, such as
Microsoft Visual C++ before
VS 16.7, this property
has no effect.
Supported values are ``90``, ``99`` and ``11``.
...
...
This diff is collapsed.
Click to expand it.
Help/prop_tgt/C_STANDARD_REQUIRED.rst
+
2
−
2
View file @
48645cab
...
...
@@ -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
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
not available. For compilers that have no notion of a standard level, such
as
MSVC 1800 (Visual Studio 2013) and lower, this
has no effect.
not available. For compilers that have no notion of a
C
standard level, such
as Microsoft Visual C++ before VS 16.7, this property
has no effect.
See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment