Fatal error when building hyprutils, "print: No such file or directory"

Hyprland version

source-v0.52.2
hyprutils-0.11.0

Describe your issue / feature…

Hi.
I’m on Linux Mint 22.2 “Zara” and have decided to try out Hyprland
While building one of the packages I encountered the following:
/home/ferris/Downloads/HyperLandBS/hyprutils-0.11.0/src/cli/Logger.cpp:4:10: fatal error: print: No such file or directory
4 | #include
| ^~~~~~~
compilation terminated.

Does anyone know what causes this and how I could fix it?
In case it’s helpful, I use Cmake4.2.1

Updating the compiler using this guide fixed the issue.
I’ve been informed that there is an up to-date ppa avaliable so I wont be using this information anymore.

I would generally advise against hyprland on point-release distros as they are too old and outdated