cmake: fix flags

9 jobs for pr/1420 in 173 minutes and 9 seconds (queued for 2 seconds)