Use the CMAKE_CXX_STANDARD in feature tests
Summary
In the MR !862 (merged) the enforcement of a c++ standard was changed from CXX_MAX_STANDARD
to CMAKE_CXX_STANDARD
. In the cmake feature tests, this was not used correctly. I have assumed that this global cmake variable is forwarded to the try_compile
command, but it is not. With this MR the situation is fixed, by manually passing the globally set standard to the try_compile
command.