Prettify CMake checks for compiler switches