Proper way to set compiler and language standard in CMake

Hmm. That seems odd. Could you please file an issue with more details about your setup and a small example project?