summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-03 15:31:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-03-03 15:31:53 (GMT)
commitd838c477aef98a302b82af7d8a7d686682d4bd69 (patch)
treec9f70bc08bc5a7543186e8dac9bc0510d961568c /Help
parent909c0533d0422e9c3204e2d7b58a18b208c7e695 (diff)
parent38df26bc6f0b36abaf673d0471037fb01ced39fa (diff)
downloadCMake-d838c477aef98a302b82af7d8a7d686682d4bd69.zip
CMake-d838c477aef98a302b82af7d8a7d686682d4bd69.tar.gz
CMake-d838c477aef98a302b82af7d8a7d686682d4bd69.tar.bz2
Merge topic 'CMP0043-dir-prop'
38df26bc CMP0043: Document old and new interfaces for setting directory property.
Diffstat (limited to 'Help')
-rw-r--r--Help/policy/CMP0043.rst8
1 files changed, 7 insertions, 1 deletions
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 $<$<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
:prop_tgt:`COMPILE_DEFINITIONS_<CONFIG>` target property when generating the