diff options
author | Brad King <brad.king@kitware.com> | 2022-09-02 13:04:04 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-09-02 13:04:13 (GMT) |
commit | 01e95efc34a2a9bcf9910d65d3b38ff9b8a51750 (patch) | |
tree | 0ac69f45fd8eb5a57b4f2e296343e887b305b431 /Source/cmake.cxx | |
parent | 18a8aa079c72c774d09ae9b18736708f672f972f (diff) | |
parent | a8d73085f4779390fe52a4115a7ba5d0edc5631b (diff) | |
download | CMake-01e95efc34a2a9bcf9910d65d3b38ff9b8a51750.zip CMake-01e95efc34a2a9bcf9910d65d3b38ff9b8a51750.tar.gz CMake-01e95efc34a2a9bcf9910d65d3b38ff9b8a51750.tar.bz2 |
Merge topic 'cmake-presets-package'
a8d73085f4 CPack: Add support for presets
b699610df4 cmCMakePresetsGraph: Add package presets
215b9148eb CMakePresets.json: Fix formatting of --list-presets=all
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7621
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 8125227..b905caa 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -782,6 +782,7 @@ enum class ListPresets Configure, Build, Test, + Package, All, }; } @@ -1137,6 +1138,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 { @@ -1304,6 +1307,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(); } |