summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorMichael Stürmer <michael.stuermer@schaeffler.com>2017-08-30 15:40:02 (GMT)
committerMichael Stürmer <michael.stuermer@schaeffler.com>2017-09-04 09:42:35 (GMT)
commit9ed242807893becd4cd8245248fade93f7054c71 (patch)
treef25c531d66dff2d04a7fab3c834463a25018068f /Help/command
parent34c4108bbcb8774821ac857e0ad0a92294ee8b0b (diff)
downloadCMake-9ed242807893becd4cd8245248fade93f7054c71.zip
CMake-9ed242807893becd4cd8245248fade93f7054c71.tar.gz
CMake-9ed242807893becd4cd8245248fade93f7054c71.tar.bz2
VS: only add custom command line if it is not empty
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.