Getting the c++ standard if ROOT_CXX_STANDARD is not set

Hi @vaubee, thanks for providing your solution.

Original post for future reference: CMake variable ROOT_CXX_STANDARD not set