refactor cmake utils out
whoops!