Bug 505064 - Cannot build with CMake 4.0.2 due to QHotkey CMake version being unsupported
Summary: Cannot build with CMake 4.0.2 due to QHotkey CMake version being unsupported
Status: REPORTED
Alias: None
Product: Crow Translate
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Gena
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-31 14:40 UTC by Julen Le Bras
Modified: 2025-07-04 09:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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