mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 22:30:13 -06:00
cpack: Allow -D flag to be used without separator
`cmake` and `ctest` already accept `-Dvar=value`. Fixes: #26394
This commit is contained in:
@@ -208,6 +208,7 @@ int main(int argc, char const* const* argv)
|
||||
CommandArgument{ "--list-presets", CommandArgument::Values::Zero,
|
||||
CommandArgument::setToTrue(listPresets) },
|
||||
CommandArgument{ "-D", CommandArgument::Values::One,
|
||||
CommandArgument::RequiresSeparator::No,
|
||||
[&log, &definitions](const std::string& arg, cmake*,
|
||||
cmMakefile*) -> bool {
|
||||
std::string value = arg;
|
||||
|
||||
Reference in New Issue
Block a user