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
Ben Stone
CMake
Commits
448e2d7a
Commit
448e2d7a
authored
4 years ago
by
Joachim Wuttke
Browse files
Options
Downloads
Patches
Plain Diff
Help: Provide cross-references between compiler settings
parent
1f697b39
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Help/command/add_compile_options.rst
+3
-0
3 additions, 0 deletions
Help/command/add_compile_options.rst
Help/command/target_compile_options.rst
+2
-0
2 additions, 0 deletions
Help/command/target_compile_options.rst
Help/prop_sf/COMPILE_OPTIONS.rst
+5
-0
5 additions, 0 deletions
Help/prop_sf/COMPILE_OPTIONS.rst
with
10 additions
and
0 deletions
Help/command/add_compile_options.rst
+
3
−
0
View file @
448e2d7a
...
...
@@ -46,3 +46,6 @@ to use the more specific commands :command:`add_compile_definitions`
and :command:`include_directories`.
The command :command:`target_compile_options` adds target-specific options.
The source file property :prop_sf:`COMPILE_OPTIONS` adds options to one
source file.
This diff is collapsed.
Click to expand it.
Help/command/target_compile_options.rst
+
2
−
0
View file @
448e2d7a
...
...
@@ -46,3 +46,5 @@ to use the more specific commands :command:`target_compile_definitions`
and :command:`target_include_directories`.
For directory-wide settings, there is the command :command:`add_compile_options`.
For file-specific settings, there is the source file property :prop_sf:`COMPILE_OPTIONS`.
This diff is collapsed.
Click to expand it.
Help/prop_sf/COMPILE_OPTIONS.rst
+
5
−
0
View file @
448e2d7a
...
...
@@ -25,3 +25,8 @@ Related properties:
* Prefer this property over :prop_sf:`COMPILE_FLAGS`.
* Use :prop_sf:`COMPILE_DEFINITIONS` to pass additional preprocessor definitions.
* Use :prop_sf:`INCLUDE_DIRECTORIES` to pass additional include directories.
Related commands:
* :command:`add_compile_options` for directory-wide settings
* :command:`target_compile_options` for target-specific settings
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