mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
cmake: Avoid else-after-exit
This commit is contained in:
1 parent
5ebdde2240
commit
387b496b4f
1 file changed
+5
-5
+5
-5
@@ -1543,11 +1543,11 @@ void cmake::SetArgs(std::vector<std::string> const& args)
|
||||
if (!parsedCorrectly) {
|
||||
cmSystemTools::Error("Run 'cmake --help' for all supported options.");
|
||||
exit(1);
|
||||
} else if (!matched && cmHasPrefix(arg, '-')) {
|
||||
possibleUnknownArg = arg;
|
||||
} else if (!matched) {
|
||||
bool parsedDirectory = this->SetDirectoriesFromFile(arg);
|
||||
if (!parsedDirectory) {
|
||||
}
|
||||
if (!matched) {
|
||||
if (cmHasPrefix(arg, '-')) {
|
||||
possibleUnknownArg = arg;
|
||||
} else if (!this->SetDirectoriesFromFile(arg)) {
|
||||
extraProvidedPath = arg;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user