[cmake] move flags around