summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/RunCMakeTest.cmake
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 /Tests/RunCMake/CPack/RunCMakeTest.cmake
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 'Tests/RunCMake/CPack/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CPack/RunCMakeTest.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/RunCMakeTest.cmake b/Tests/RunCMake/CPack/RunCMakeTest.cmake
index d93f280..8e98961 100644
--- a/Tests/RunCMake/CPack/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CPack/RunCMakeTest.cmake
@@ -36,3 +36,6 @@ run_cpack_test(MD5SUMS "DEB.MD5SUMS" false "MONOLITHIC;COMPONENT")
run_cpack_test_subtests(CPACK_INSTALL_SCRIPTS "singular;plural;both" "ZIP" false "MONOLITHIC")
run_cpack_test(DEB_PACKAGE_VERSION_BACK_COMPATIBILITY "DEB.DEB_PACKAGE_VERSION_BACK_COMPATIBILITY" false "MONOLITHIC;COMPONENT")
run_cpack_test_subtests(EXTERNAL "none;good;good_multi;bad_major;bad_minor;invalid_good;invalid_bad;stage_and_package" "External" false "MONOLITHIC;COMPONENT")
+if(RunCMake_GENERATOR MATCHES "Visual Studio|Xcode")
+ run_cpack_test(CPACK_INSTALL_CMAKE_CONFIGURATIONS "ZIP" false "MONOLITHIC")
+endif()