summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-07-05 08:52:18 +0200
committerBrad King <brad.king@kitware.com>2018-07-05 10:21:09 -0400
commit89e3e62e138ca1e666d5b4c7a9fa8198c4241d11 (patch)
tree86a0711de818272aa52da9ef94c3e223f0de0a4a
parent51e7d4150756a01d51da38acfd0a469b138e1fde (diff)
downloadcmake-89e3e62e138ca1e666d5b4c7a9fa8198c4241d11.tar.gz
Help: fix add_compile_definitions() documentation
Fixes: #18147
-rw-r--r--Help/command/add_compile_definitions.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/command/add_compile_definitions.rst b/Help/command/add_compile_definitions.rst
index 37f6650aa0..48815d44fa 100644
--- a/Help/command/add_compile_definitions.rst
+++ b/Help/command/add_compile_definitions.rst
@@ -8,9 +8,9 @@ Adds preprocessor definitions to the compilation of source files.
add_compile_definitions(<definition> ...)
Adds preprocessor definitions to the compiler command line for targets in the
-current directory and below that are added after this command is invoked.
-See documentation of the :prop_dir:`directory <COMPILE_DEFINITIONS>` and
-:prop_tgt:`target <COMPILE_DEFINITIONS>` ``COMPILE_DEFINITIONS`` properties.
+current directory and below (whether added before or after this command is
+invoked). See documentation of the :prop_dir:`directory <COMPILE_DEFINITIONS>`
+and :prop_tgt:`target <COMPILE_DEFINITIONS>` ``COMPILE_DEFINITIONS`` properties.
Definitions are specified using the syntax ``VAR`` or ``VAR=value``.
Function-style definitions are not supported. CMake will automatically