Support Homebrew installation for OpenAPI Generator CLI on macOS
- Detect OpenAPI Generator installed via Homebrew using `brew --prefix`.
- Use the Homebrew prefix to locate the jar at
"<prefix>/libexec/openapi-generator-cli.jar".
This ensures the jar path works regardless of the architecture (Apple
Silicon vs Intel) or the installed openapi generator's version instead
of guessing from the executable path.
- Set OPENAPI_GENERATOR_CLI_JAR if the jar path exists.
Task-number: QTBUG-142545
Pick-to: 6.11
Change-Id: I836507263caa58998103cbc144d43e23256f59b5
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>