cmCommandLineArgument: trim leading empty spaces

This commit is contained in:
Robert Maynard
2021-03-09 14:35:49 -05:00
parent b227a9565e
commit 400536c317

View File

@@ -110,6 +110,10 @@ struct cmCommandLineArgument
}
}
if (parseState == ParseMode::Valid) {
if (possible_value[0] == ' ') {
possible_value.remove_prefix(1);
}
parseState = this->StoreCall(std::string(possible_value),
std::forward<CallState>(state)...)
? ParseMode::Valid