diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-03 09:57:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-03 15:11:19 (GMT) |
commit | 38df26bc6f0b36abaf673d0471037fb01ced39fa (patch) | |
tree | 65b543f754ed7c97d31b3597f2526839de25eb19 | |
parent | a7c956b86736ea82ade88bea6414cd6a8c84e307 (diff) | |
download | CMake-38df26bc6f0b36abaf673d0471037fb01ced39fa.zip CMake-38df26bc6f0b36abaf673d0471037fb01ced39fa.tar.gz CMake-38df26bc6f0b36abaf673d0471037fb01ced39fa.tar.bz2 |
CMP0043: Document old and new interfaces for setting directory property.
-rw-r--r-- | Help/policy/CMP0043.rst | 8 |
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 |