cmake: CompilerChecks: Correct standard warnings

If the -std options don't work for the compiler, issue a
warning, not an error.  The existing error was not using
a valid message type.
Merge pull request #1290 from rleigh-dundee/cmake-errormsg

cmake: CompilerChecks: Correct standard warnings