From 38df26bc6f0b36abaf673d0471037fb01ced39fa Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 3 Mar 2014 10:57:23 +0100 Subject: CMP0043: Document old and new interfaces for setting directory property. --- Help/policy/CMP0043.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Help/policy/CMP0043.rst b/Help/policy/CMP0043.rst index 43d6df2..629e502 100644 --- a/Help/policy/CMP0043.rst +++ b/Help/policy/CMP0043.rst @@ -18,16 +18,22 @@ or via :command:`target_compile_definitions`: .. code-block:: cmake - # Old Interface: + # Old Interfaces: set_property(TARGET tgt APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG_MODE ) + set_property(DIRECTORY APPEND PROPERTY + COMPILE_DEFINITIONS_DEBUG DIR_DEBUG_MODE + ) # New Interfaces: set_property(TARGET tgt APPEND PROPERTY COMPILE_DEFINITIONS $<$:DEBUG_MODE> ) target_compile_definitions(tgt PRIVATE $<$:DEBUG_MODE>) + set_property(DIRECTORY APPEND PROPERTY + COMPILE_DEFINITIONS $<$:DIR_DEBUG_MODE> + ) The OLD behavior for this policy is to consume the content of the suffixed :prop_tgt:`COMPILE_DEFINITIONS_` target property when generating the -- cgit v0.12