cmake: Avoid else-after-exit

This commit is contained in:
Brad King committed 2026-10-26 16:15:30 -04:00
1 parent 5ebdde2240
commit 387b496b4f
1 file changed
+5 -5
+5 -5
View File
@@ -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;
}
}