Merge topic 'CMP0043-dir-prop'

38df26bc CMP0043: Document old and new interfaces for setting directory property.
This commit is contained in:
Brad King 2014-03-03 10:31:53 -05:00 committed by CMake Topic Stage
commit d838c477ae
1 changed files with 7 additions and 1 deletions

View File

@ -18,16 +18,22 @@ or via :command:`target_compile_definitions`:
.. code-block:: cmake .. code-block:: cmake
# Old Interface: # Old Interfaces:
set_property(TARGET tgt APPEND PROPERTY set_property(TARGET tgt APPEND PROPERTY
COMPILE_DEFINITIONS_DEBUG DEBUG_MODE COMPILE_DEFINITIONS_DEBUG DEBUG_MODE
) )
set_property(DIRECTORY APPEND PROPERTY
COMPILE_DEFINITIONS_DEBUG DIR_DEBUG_MODE
)
# New Interfaces: # New Interfaces:
set_property(TARGET tgt APPEND PROPERTY set_property(TARGET tgt APPEND PROPERTY
COMPILE_DEFINITIONS $<$<CONFIG:Debug>:DEBUG_MODE> COMPILE_DEFINITIONS $<$<CONFIG:Debug>:DEBUG_MODE>
) )
target_compile_definitions(tgt PRIVATE $<$<CONFIG:Debug>:DEBUG_MODE>) target_compile_definitions(tgt PRIVATE $<$<CONFIG:Debug>:DEBUG_MODE>)
set_property(DIRECTORY APPEND PROPERTY
COMPILE_DEFINITIONS $<$<CONFIG:Debug>:DIR_DEBUG_MODE>
)
The OLD behavior for this policy is to consume the content of the suffixed The OLD behavior for this policy is to consume the content of the suffixed
:prop_tgt:`COMPILE_DEFINITIONS_<CONFIG>` target property when generating the :prop_tgt:`COMPILE_DEFINITIONS_<CONFIG>` target property when generating the