mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmCommandLineArgument: trim leading empty spaces
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user