diff options
Diffstat (limited to 'Help/command/add_compile_options.rst')
-rw-r--r-- | Help/command/add_compile_options.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/command/add_compile_options.rst b/Help/command/add_compile_options.rst index f587ae6..869d0c2 100644 --- a/Help/command/add_compile_options.rst +++ b/Help/command/add_compile_options.rst @@ -11,6 +11,11 @@ Adds options to the :prop_dir:`COMPILE_OPTIONS` directory property. These options are used when compiling targets from the current directory and below. +.. note:: + + These options are not used when linking. + See the :command:`add_link_options` command for that. + Arguments ^^^^^^^^^ @@ -54,3 +59,9 @@ See Also * The source file property :prop_sf:`COMPILE_OPTIONS` adds options to one source file. + +* :command:`add_link_options` adds options for linking. + +* :variable:`CMAKE_<LANG>_FLAGS` and :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>` + add language-wide flags passed to all invocations of the compiler. + This includes invocations that drive compiling and those that drive linking. |