For compatibility with older versions of CMake, try_compile is not honoring language standard variables in the test project: