Issue installing gazebo harmonic macos 15.X

I’m trying to install gazebo on my machine.

brew install gz-harmonic

==> cmake -DCMAKE_CXX_STANDARD='14' -DOGRE_BUILD_DOCS:BOOL=FALSE -DOGRE_BUILD_LIBS_AS_FRAMEWORKS=OFF -DOGRE_BUILD_SAMPLES:B
Last 15 lines from /Users/m0sviatoslav/Library/Logs/Homebrew/ogre1.9/01.cmake:
-DBUILD_TESTING=OFF
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
..

CMake Error at CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!

If reporting this issue please do so at (not Homebrew/* repositories):
  https://github.com/osrf/homebrew-simulation/issues

These open issues may also help:
ogre1.9 - macOS 15.0 from source installation issues https://github.com/osrf/homebrew-simulation/issues/2793
brew config 
HOMEBREW_VERSION: 4.4.30-4-g9f49db1
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9f49db135c0ab6651b6958de6fdfe956c7d4dcbd
Last commit: 3 hours ago
Branch: HEAD
Core tap JSON: 14 Apr 20:27 UTC
Core cask tap JSON: 14 Apr 20:27 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.U0RG0N9y6o/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.8 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.8/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 17.0.0 build 1700
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.4-arm64
CLT: 16.3.0.0.1.1742442376
Xcode: 16.3
Rosetta 2: false

I also tried this Compatibility with CMake < 3.5 has been removed from CMake. · Issue #3003 · osrf/homebrew-simulation · GitHub but didn’t help (((