Remove dead cmake code

It's not needed
2 jobs for master in 11 minutes and 28 seconds (queued for 12 minutes and 45 seconds)