diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-02-03 13:20:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-02-06 21:15:53 (GMT) |
commit | ba4c2fa8fd2a03f7d69e60d581d44a3cc79a3c9a (patch) | |
tree | f44187babf7f2eb84c5532789783a6d5a6bbdeee /Help/command/add_compile_options.rst | |
parent | a683262a727c4fd2c9e3271e6bc36679d0963342 (diff) | |
download | CMake-ba4c2fa8fd2a03f7d69e60d581d44a3cc79a3c9a.zip CMake-ba4c2fa8fd2a03f7d69e60d581d44a3cc79a3c9a.tar.gz CMake-ba4c2fa8fd2a03f7d69e60d581d44a3cc79a3c9a.tar.bz2 |
Help: Mark up the buildsystem commands documentation
Cross-link to the cmake-buildsystem manual.
Diffstat (limited to 'Help/command/add_compile_options.rst')
-rw-r--r-- | Help/command/add_compile_options.rst | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Help/command/add_compile_options.rst b/Help/command/add_compile_options.rst index 49b38a2..5d71e11 100644 --- a/Help/command/add_compile_options.rst +++ b/Help/command/add_compile_options.rst @@ -9,9 +9,14 @@ Adds options to the compilation of source files. Adds options to the compiler command line for sources in the current directory and below. This command can be used to add any options, but -alternative commands exist to add preprocessor definitions or include -directories. See documentation of the directory and target -COMPILE_OPTIONS properties for details. Arguments to -add_compile_options may use "generator expressions" with the syntax -``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual for -available expressions. +alternative commands exist to add preprocessor definitions +(:command:`target_compile_definitions` and :command:`add_definitions`) or +include directories (:command:`target_include_directories` and +:command:`include_directories`). See documentation of the +:prop_tgt:`directory <COMPILE_OPTIONS>` and +:prop_tgt:` target <COMPILE_OPTIONS>` ``COMPILE_OPTIONS`` properties. + +Arguments to ``add_compile_options`` may use "generator expressions" with +the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` +manual for available expressions. See the :manual:`cmake-buildsystem(7)` +manual for more on defining buildsystem properties. |