Tweak to the part of the CMake configuration that allows the version of the C++ standard to be modified via the environment variable `CMAKE_CXX_STANDARD`.
modified via the environment variable `CMAKE_CXX_STANDARD`.
The modified implementation only allows the value to be changed if the specified standard is newer
than our default, currently C++17.