mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
cmCommandLineArgument: trim leading empty spaces
This commit is contained in:
@@ -110,6 +110,10 @@ struct cmCommandLineArgument
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (parseState == ParseMode::Valid) {
|
if (parseState == ParseMode::Valid) {
|
||||||
|
if (possible_value[0] == ' ') {
|
||||||
|
possible_value.remove_prefix(1);
|
||||||
|
}
|
||||||
|
|
||||||
parseState = this->StoreCall(std::string(possible_value),
|
parseState = this->StoreCall(std::string(possible_value),
|
||||||
std::forward<CallState>(state)...)
|
std::forward<CallState>(state)...)
|
||||||
? ParseMode::Valid
|
? ParseMode::Valid
|
||||||
|
|||||||
Reference in New Issue
Block a user