summaryrefslogtreecommitdiffstats
path: root/Help/command/add_compile_options.rst
Commit message (Collapse)AuthorAgeFilesLines
* Help: Revise compile options command docs, and provide exampleJoachim Wuttke (h)2018-12-201-8/+31
| | | | | | | | | | For add_compile_options and target_compile_options: - Insert sections. - Provide cross-links between the two doc pages - Alleviate and explain links to the commands ...compile_definitions and ...include_directories. - Alleviate link to COMPILE_OPTIONS, and integrate it into the synopsis.
* Help: Apply syntax highlighting to project commandsJoachim Wuttke (o)2018-10-251-2/+2
| | | | | | * Replace most "::" by ".. code-block:: cmake" * Header sentence in imperative voice, detailed command description in present tense.
* LINK_OPTIONS: Add new family of propertiesMarc Chevrier2018-06-061-1/+1
| | | | | | | | | | | | | | This family enable to manage link flags Three new properties: * directory property: LINK_OPTIONS * target properties: LINK_OPTIONS and INTERFACE_LINK_OPTIONS Two new commands * add_link_options(): to populate directory property * target_link_options(): to populate target properties Fixes: #16543
* add_compile_definitions: add new commandMarc Chevrier2018-04-201-1/+1
| | | | | | | This command manages preprocessor definitions at directory level and supports generator expressions. Fixes: #15374
* target_compile_options: Add syntax to specify shell stringsBrad King2018-03-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Options specified via `COMPILE_OPTIONS` and `INTERFACE_COMPILE_OPTIONS` are deduplicated, but individual options can legitimately be duplicated when grouped with other options, e.g. -D A -D B After deduplication that becomes `-D A B`. Therefore we need a way to treat groups of options as units during deduplication. A simple approach is to specify each group as one option, e.g. "-D A" "-D B" However, that conflicts with options that legitimately have spaces. To break this ambiguity, add a `SHELL:` prefix syntax to specify that an option should be parsed like shell command line arguments after deduplication, e.g. "SHELL:-D A" "SHELL:-D B" These will survive deduplication intact, and then be parsed to produce `-D A -D B` on the final command line. Fixes: #15826
* Help: Clarify add_compile_options documentation (#15225)Brad King2014-10-291-7/+8
| | | | | | | Explain that it affects only targets added after the call. Fix the link to the COMPILE_OPTIONS directory propert documentation. Update the latter to explain that it is used to initialize the corresponding target property when a target is created.
* Help: Fix whitespace in doc link.Stephen Kelly2014-05-201-1/+1
|
* Help: Mark up the buildsystem commands documentationStephen Kelly2014-02-061-6/+11
| | | | Cross-link to the cmake-buildsystem manual.
* Help: Use ``inline-literals`` to mark generator expressions.Stephen Kelly2014-02-061-1/+1
|
* Help: Factor out cmake-generator-expressions manual pageBrad King2013-10-161-74/+2
| | | | | | | | | Generator expressions are supported in many places and are a distinct concept worthy of their own manual page. The old builtin documentation was previously represented by preprocessor macros to generate it into each place that supports them. Factor out the duplicate content into a dedicated cmake-generator-expressions manual page and reference it from each original location.
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-0/+89
Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.