summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-02-03 22:36:51 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-08-31 15:56:21 (GMT)
commita8d73085f4779390fe52a4115a7ba5d0edc5631b (patch)
tree7e7604a6f82d3c665a08ad21aea026eb97e506ca /Source/cmake.cxx
parentb699610df4878a3a68cb91a0a698f77e120282d1 (diff)
downloadCMake-a8d73085f4779390fe52a4115a7ba5d0edc5631b.zip
CMake-a8d73085f4779390fe52a4115a7ba5d0edc5631b.tar.gz
CMake-a8d73085f4779390fe52a4115a7ba5d0edc5631b.tar.bz2
CPack: Add support for presets
Fixes: #23117
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 9b2b119..ee587b2 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -778,6 +778,7 @@ enum class ListPresets
Configure,
Build,
Test,
+ Package,
All,
};
}
@@ -1133,6 +1134,8 @@ void cmake::SetArgs(const std::vector<std::string>& args)
listPresets = ListPresets::Build;
} else if (value == "test") {
listPresets = ListPresets::Test;
+ } else if (value == "package") {
+ listPresets = ListPresets::Package;
} else if (value == "all") {
listPresets = ListPresets::All;
} else {
@@ -1300,6 +1303,8 @@ void cmake::SetArgs(const std::vector<std::string>& args)
presetsGraph.PrintBuildPresetList();
} else if (listPresets == ListPresets::Test) {
presetsGraph.PrintTestPresetList();
+ } else if (listPresets == ListPresets::Package) {
+ presetsGraph.PrintPackagePresetList();
} else if (listPresets == ListPresets::All) {
presetsGraph.PrintAllPresets();
}