summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-07-09 21:07:55 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-30 15:02:43 (GMT)
commitda5ac4bb602bafb97b4dc0e012f1d26bbab58e3a (patch)
tree52a7e3d270e57688a5aa089986b09d857f8d268c /Help
parentd4e6b2ae25659699fccf6bc5888e87179f41b23a (diff)
downloadCMake-da5ac4bb602bafb97b4dc0e012f1d26bbab58e3a.zip
CMake-da5ac4bb602bafb97b4dc0e012f1d26bbab58e3a.tar.gz
CMake-da5ac4bb602bafb97b4dc0e012f1d26bbab58e3a.tar.bz2
cpack: Add `CPACK_INSTALL_CMAKE_CONFIGURATIONS` variable
For the multi-configuration generators one can specify the list of configurations to include in the package. E.g. having a project, where debug libraries have a suffix to distinct them from the release builds, one can build the package containing both `Debug` and `Release` binaries.
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cpack.1.rst8
-rw-r--r--Help/release/dev/cpack-install-multiple-configurations.rst5
2 files changed, 10 insertions, 3 deletions
diff --git a/Help/manual/cpack.1.rst b/Help/manual/cpack.1.rst
index 10f617e..f82c466 100644
--- a/Help/manual/cpack.1.rst
+++ b/Help/manual/cpack.1.rst
@@ -48,9 +48,11 @@ Options
the :variable:`CPACK_GENERATOR` variable determines the default set of
generators that will be used.
-``-C <Configuration>``
- Specify the project configuration to be packaged (e.g. ``Debug``,
- ``Release``, etc.). When the CMake project uses a multi-configuration
+``-C <configs>``
+ Specify the project configuration(s) to be packaged (e.g. ``Debug``,
+ ``Release``, etc.), where ``<configs>`` is a
+ :ref:`semicolon-separated list <CMake Language Lists>`.
+ When the CMake project uses a multi-configuration
generator such as Xcode or Visual Studio, this option is needed to tell
``cpack`` which built executables to include in the package.
diff --git a/Help/release/dev/cpack-install-multiple-configurations.rst b/Help/release/dev/cpack-install-multiple-configurations.rst
new file mode 100644
index 0000000..d1692dc
--- /dev/null
+++ b/Help/release/dev/cpack-install-multiple-configurations.rst
@@ -0,0 +1,5 @@
+cpack-install-multiple-configurations
+-------------------------------------
+
+* CPack learned :variable:`CPACK_INSTALL_CMAKE_CONFIGURATIONS` to control
+ what configurations going to be packaged for multi-configuration generators.