CMake

From Bitpost wiki

Love it or hate it, no way around it.

Install latest version

Use this answer:

wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
# for 22.04
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt purge --auto-remove cmake
sudo apt update
sudo apt install cmake

Bugs

There is a stupid bug that kills my ability to build pqxx. The workaround is in the mah-haus ToDo.txt, we had to add && to the generated makefile.