mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-15 19:20:44 -06:00
cmake --list-presets: List package as a valid option
This commit is contained in:
@@ -1145,7 +1145,7 @@ void cmake::SetArgs(const std::vector<std::string>& args)
|
|||||||
} else {
|
} else {
|
||||||
cmSystemTools::Error(
|
cmSystemTools::Error(
|
||||||
"Invalid value specified for --list-presets.\n"
|
"Invalid value specified for --list-presets.\n"
|
||||||
"Valid values are configure, build, test, or all. "
|
"Valid values are configure, build, test, package, or all. "
|
||||||
"When no value is passed the default is configure.");
|
"When no value is passed the default is configure.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
^CMake Error: Invalid value specified for --list-presets\.
|
||||||
|
Valid values are configure, build, test, package, or all\. When no value is passed the default is configure\.
|
||||||
|
CMake Error: Run 'cmake --help' for all supported options\.$
|
||||||
@@ -289,6 +289,7 @@ run_cmake_presets(UserInheritance)
|
|||||||
# Test listing presets
|
# Test listing presets
|
||||||
set(CMakePresets_FILE "${RunCMake_SOURCE_DIR}/ListPresets.json.in")
|
set(CMakePresets_FILE "${RunCMake_SOURCE_DIR}/ListPresets.json.in")
|
||||||
run_cmake_presets(ListPresets --list-presets)
|
run_cmake_presets(ListPresets --list-presets)
|
||||||
|
run_cmake_presets(ListPresetsInvalidType --list-presets=invalid-type)
|
||||||
|
|
||||||
set(RunCMake_TEST_BINARY_DIR "${RunCMake_BINARY_DIR}/ListPresetsWorkingDir")
|
set(RunCMake_TEST_BINARY_DIR "${RunCMake_BINARY_DIR}/ListPresetsWorkingDir")
|
||||||
set(RunCMake_TEST_NO_CLEAN 1)
|
set(RunCMake_TEST_NO_CLEAN 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user