cmake: cleanup cmake configuration

1 job for master in 8 minutes and 53 seconds (queued for 53 seconds)
Status Job ID Name Coverage
  Build
passed #12562
flatpak
flatpak

00:08:53