Bug 505064

Summary: Cannot build with CMake 4.0.2 due to QHotkey CMake version being unsupported
Product: [Applications] Crow Translate Reporter: Julen Le Bras <julien.lb.pro>
Component: generalAssignee: Gena <genaloner>
Status: REPORTED ---    
Severity: normal CC: beaux_monde, javirrdar
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Julen Le Bras 2025-05-31 14:40:42 UTC
SUMMARY

Build fails with CMake 4.0.2

STEPS TO REPRODUCE
1. Git clone Crow Translate source code
2. Build with CMake 4.0.2

OBSERVED RESULT

The build fails:

CMake Error at src/3rdparty/qhotkey/CMakeLists.txt:1 (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.

EXPECTED RESULT

The build succeeds.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

An issue already exists in QHotkey github repo, with a PR but nothing has been merged yet.
https://github.com/Skycoder42/QHotkey/issues/91