summaryrefslogtreecommitdiffstats
path: root/Help/command/target_compile_options.rst
Commit message (Collapse)AuthorAgeFilesLines
* Help: Revise compile options command docs, and provide exampleJoachim Wuttke (h)2018-12-201-12/+18
| | | | | | | | | | 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-2/+2
| | | | | | | 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
* Teach target_* commands to set INTERFACE properties of IMPORTED targetsDeniz Bahadir2017-10-261-4/+7
| | | | | | | | | | | Now, several `INTERFACE_*` properties can be set on `IMPORTED` targets, not only via `set_property` and `set_target_properties` but also via `target_compile_definitions`, `target_compile_features`, `target_compile_options`, `target_include_directories`, `target_sources` and `target_link_libraries`. Fixes: #15689 Issue: #17197
* Help: Fix xref typos in target_compile_options docsBrad King2015-03-311-2/+2
| | | | Fix links to the COMPILE_OPTIONS directory and target properties.
* Help: Fix broken cross-references reported by 'nitpicky' optionBrad King2014-11-071-2/+2
| | | | | Enable the Sphinx 'nitpicky' option and fix the resulting warnings about dangling references.
* Help: Mark up the buildsystem commands documentationStephen Kelly2014-02-061-15/+25
| | | | Cross-link to the cmake-buildsystem manual.
* Help: Use ``inline-literals`` to mark generator expressions.Stephen Kelly2014-02-061-1/+1
|
* Docs: Fix typoStephen Kelly2013-10-231-1/+1
| | | | opitions -> options.
* Help: Factor out cmake-generator-expressions manual pageBrad King2013-10-161-74/+3
| | | | | | | | | 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/+98
Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.