1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-25 04:25:29 +08:00

Help: Link to COMPILE_LANGUAGE genex from target_compile_options

Issue: #24639
This commit is contained in:
Brad King
2023-03-28 10:57:31 -04:00
parent f4b8176447
commit e2830cf16b
2 changed files with 8 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ See Also
* For file-specific settings, there is the source file property :prop_sf:`COMPILE_OPTIONS`.
* This command adds compile options for all languages in a target.
Use the :genex:`COMPILE_LANGUAGE` generator expression to specify
per-language compile options.
* :command:`target_compile_features`
* :command:`target_link_libraries`
* :command:`target_link_directories`

View File

@@ -11,6 +11,10 @@ The options will be added after after flags in the
variables, but before those propagated from dependencies by the
:prop_tgt:`INTERFACE_COMPILE_OPTIONS` property.
This property adds compile options for all languages in a target.
Use the :genex:`COMPILE_LANGUAGE` generator expression to specify
per-language compile options.
This property is initialized by the :prop_dir:`COMPILE_OPTIONS` directory
property when a target is created, and is used by the generators to set
the options for the compiler.