diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2022-12-08 13:52:56 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2022-12-13 15:54:56 (GMT) |
commit | 7480fa0a5fd0ebc3fe06c702f3368e06a50c10ab (patch) | |
tree | 1b2e7a5a5a2a6297a763385535c233817f53d5e8 /Help | |
parent | ff875ed8591afdb87055b8e43b1fcd04438a4d1e (diff) | |
download | CMake-7480fa0a5fd0ebc3fe06c702f3368e06a50c10ab.zip CMake-7480fa0a5fd0ebc3fe06c702f3368e06a50c10ab.tar.gz CMake-7480fa0a5fd0ebc3fe06c702f3368e06a50c10ab.tar.bz2 |
COMPILE_DEFINITIONS property: ensure leading -D is removed in all cases
Fixes: #24186
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/add_compile_definitions.rst | 3 | ||||
-rw-r--r-- | Help/prop_dir/COMPILE_DEFINITIONS.rst | 3 | ||||
-rw-r--r-- | Help/prop_sf/COMPILE_DEFINITIONS.rst | 3 | ||||
-rw-r--r-- | Help/prop_tgt/COMPILE_DEFINITIONS.rst | 3 | ||||
-rw-r--r-- | Help/release/dev/COMPILE_DEFINITIONS-property-cleanup.rst | 6 |
5 files changed, 18 insertions, 0 deletions
diff --git a/Help/command/add_compile_definitions.rst b/Help/command/add_compile_definitions.rst index ad1fc43..b2eb2af 100644 --- a/Help/command/add_compile_definitions.rst +++ b/Help/command/add_compile_definitions.rst @@ -21,6 +21,9 @@ Function-style definitions are not supported. CMake will automatically escape the value correctly for the native build system (note that CMake language syntax may require escapes to specify some values). +.. versionadded:: 3.26 + Any leading ``-D`` on an item will be removed. + .. |command_name| replace:: ``add_compile_definitions`` .. include:: GENEX_NOTE.txt diff --git a/Help/prop_dir/COMPILE_DEFINITIONS.rst b/Help/prop_dir/COMPILE_DEFINITIONS.rst index 18f4567..5a12c1e 100644 --- a/Help/prop_dir/COMPILE_DEFINITIONS.rst +++ b/Help/prop_dir/COMPILE_DEFINITIONS.rst @@ -19,6 +19,9 @@ directory's parent. CMake will automatically drop some definitions that are not supported by the native build tool. +.. versionadded:: 3.26 + Any leading ``-D`` on an item will be removed. + .. include:: /include/COMPILE_DEFINITIONS_DISCLAIMER.txt Contents of ``COMPILE_DEFINITIONS`` may use "generator expressions" with diff --git a/Help/prop_sf/COMPILE_DEFINITIONS.rst b/Help/prop_sf/COMPILE_DEFINITIONS.rst index 6317690..2af896e 100644 --- a/Help/prop_sf/COMPILE_DEFINITIONS.rst +++ b/Help/prop_sf/COMPILE_DEFINITIONS.rst @@ -16,6 +16,9 @@ CMake will automatically drop some definitions that are not supported by the native build tool. Xcode does not support per-configuration definitions on source files. +.. versionadded:: 3.26 + Any leading ``-D`` on an item will be removed. + .. include:: /include/COMPILE_DEFINITIONS_DISCLAIMER.txt Contents of ``COMPILE_DEFINITIONS`` may use :manual:`cmake-generator-expressions(7)` diff --git a/Help/prop_tgt/COMPILE_DEFINITIONS.rst b/Help/prop_tgt/COMPILE_DEFINITIONS.rst index 059f913..c128a9b 100644 --- a/Help/prop_tgt/COMPILE_DEFINITIONS.rst +++ b/Help/prop_tgt/COMPILE_DEFINITIONS.rst @@ -13,6 +13,9 @@ values). CMake will automatically drop some definitions that are not supported by the native build tool. +.. versionadded:: 3.26 + Any leading ``-D`` on an item will be removed. + .. include:: /include/COMPILE_DEFINITIONS_DISCLAIMER.txt Contents of ``COMPILE_DEFINITIONS`` may use "generator expressions" with the diff --git a/Help/release/dev/COMPILE_DEFINITIONS-property-cleanup.rst b/Help/release/dev/COMPILE_DEFINITIONS-property-cleanup.rst new file mode 100644 index 0000000..e24bc26 --- /dev/null +++ b/Help/release/dev/COMPILE_DEFINITIONS-property-cleanup.rst @@ -0,0 +1,6 @@ +COMPILE_DEFINITIONS-property-cleanup +------------------------------------ + +* For all ``COMPILE_DEFINITIONS`` properties, any leading ``-D`` on an item + will be removed regardless how to was defined: as is or inside a generator + expression. |