mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-09 23:44:00 +03:00
cpack: Allow -D flag to be used without separator
`cmake` and `ctest` already accept `-Dvar=value`. Fixes: #26394
This commit is contained in:
1 parent
4b08b10900
commit
e7371f5a18
1 file changed
+1
@@ -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