move the compiler setup code into its own `cmake` config file