summaryrefslogtreecommitdiffstats
path: root/Help/command/add_compile_definitions.rst
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-12-08 13:52:56 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-12-13 15:54:56 (GMT)
commit7480fa0a5fd0ebc3fe06c702f3368e06a50c10ab (patch)
tree1b2e7a5a5a2a6297a763385535c233817f53d5e8 /Help/command/add_compile_definitions.rst
parentff875ed8591afdb87055b8e43b1fcd04438a4d1e (diff)
downloadCMake-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/command/add_compile_definitions.rst')
-rw-r--r--Help/command/add_compile_definitions.rst3
1 files changed, 3 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