Game Porting Toolkit installation fails: CMake compatibility error in game-porting-toolkit-compiler

I'm encountering a build failure when trying to install the Game Porting Toolkit via Homebrew. The installation fails during the game-porting-toolkit-compiler dependency build phase with a CMake compatibility error.

Error Message:

CMake Error at CMakeLists.txt:3 (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!

Environment:

  • macOS: 15.6.1 (Sequoia)
  • Homebrew: 5.0.1
  • CMake: 3.20.2
  • Architecture: x86_64 (via Rosetta)
  • Formula: apple/apple/game-porting-toolkit-compiler v0.1
  • Source: crossover-sources-22.1.1.tar.gz

Steps to Reproduce:

  1. Install x86_64 Homebrew for Rosetta compatibility
  2. Run: arch -x86_64 /usr/local/bin/brew install apple/apple/game-porting-toolkit
  3. Build fails during dependency installation

Root Cause: The LLVM/Clang sources included in crossover-sources-22.1.1.tar.gz contain a CMakeLists.txt file that specifies a minimum CMake version lower than 3.5. Modern CMake versions (3.5+) have removed backward compatibility with these older version requirements.

Potential Solutions:

  1. Update the Homebrew formula to patch the CMakeLists.txt with cmake_minimum_required(VERSION 3.5) or higher
  2. Update to newer CrossOver sources with updated CMake requirements
  3. Add the -DCMAKE_POLICY_VERSION_MINIMUM=3.5 flag to the CMake build command in the formula

Is this a known issue? Are there plans to update the formula or the source package to resolve this compatibility problem? Any guidance on a workaround would be appreciated.

Full log available at: /Users/kentarovadney/Library/Logs/Homebrew/game-porting-toolkit-compiler/02.cmake.log

Thanks for any assistance!

Game Porting Toolkit installation fails: CMake compatibility error in game-porting-toolkit-compiler
 
 
Q