diff options
author | Brad King <brad.king@kitware.com> | 2018-01-11 15:15:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-01-11 15:15:27 (GMT) |
commit | 45f287212998c7ed8f928ef3b95f44acbaedc83f (patch) | |
tree | 45bd2e2e06686fb6cf430679a18dc7493247d147 /Help | |
parent | 8f1666b207ff2ea69b822eaf79b25192029db846 (diff) | |
parent | f09fda97d88094d56d0f8f40fa361b920feccd46 (diff) | |
download | CMake-45f287212998c7ed8f928ef3b95f44acbaedc83f.zip CMake-45f287212998c7ed8f928ef3b95f44acbaedc83f.tar.gz CMake-45f287212998c7ed8f928ef3b95f44acbaedc83f.tar.bz2 |
Merge topic 'doc-install-arg-order'
f09fda97 Help: improve install() documentation of argument ordering
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1641
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/install.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Help/command/install.rst b/Help/command/install.rst index f43b2a0..2506f98 100644 --- a/Help/command/install.rst +++ b/Help/command/install.rst @@ -38,7 +38,21 @@ signatures that specify them. The common options are: ``CONFIGURATIONS`` Specify a list of build configurations for which the install rule - applies (Debug, Release, etc.). + applies (Debug, Release, etc.). Note that the values specified for + this option only apply to options listed AFTER the ``CONFIGURATIONS`` + option. For example, to set separate install paths for the Debug and + Release configurations, do the following: + + .. code-block:: cmake + + install(TARGETS target + CONFIGURATIONS Debug + RUNTIME DESTINATION Debug/bin) + install(TARGETS target + CONFIGURATIONS Release + RUNTIME DESTINATION Release/bin) + + Note that ``CONFIGURATIONS`` appears BEFORE ``RUNTIME DESTINATION``. ``COMPONENT`` Specify an installation component name with which the install rule |