summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-11 11:53:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-11 11:53:18 (GMT)
commit28adf3833c23411dfce12b5be754ad53bc2b9b05 (patch)
tree00cd2f817a879541d0b290f322c56c5be06dc3b9 /Help/command
parentbf19bb5609b409c9c4043b22a7bbdb38354af73a (diff)
parent9ed242807893becd4cd8245248fade93f7054c71 (diff)
downloadCMake-28adf3833c23411dfce12b5be754ad53bc2b9b05.zip
CMake-28adf3833c23411dfce12b5be754ad53bc2b9b05.tar.gz
CMake-28adf3833c23411dfce12b5be754ad53bc2b9b05.tar.bz2
Merge topic 'vs_improve_custom_command'
9ed24280 VS: only add custom command line if it is not empty 34c4108b add HasOnlyEmptyCommandLines() method to cmCustomCommandGenerator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1050
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/add_custom_command.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index d038406..1b0aa14 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -225,3 +225,13 @@ of the following is specified:
:command:`add_custom_target` command.
``POST_BUILD``
Run after all other rules within the target have been executed.
+
+.. note::
+ Because generator expressions can be used in custom commands,
+ it is possible to define ``COMMAND`` lines or whole custom commands
+ which evaluate to empty strings for certain configurations.
+ For **Visual Studio 2010 (and newer)** generators these command
+ lines or custom commands will be omitted for the specific
+ configuration and no "empty-string-command" will be added.
+
+ This allows to add individual build events for every configuration.