Use ROOT_CXX_STANDARD if it is already defined by ROOT, otherwise preserve previous behaviour
With the recent update in ROOT CMake configuration, the handling of the C++ standard has shifted to using ROOT_CXX_STANDARD, aligning with native CMake practices. This change removes the C++ standard specification from ROOT_CXX_FLAGS, making the current method of extracting the C++ standard obsolete.
This merge request updates our build system to:
- Primarily use ROOT_CXX_STANDARD directly when it is defined by ROOT.
- Keep the previous behavior as a fallback, where we deduce the C++ standard from ROOT_CXX_FLAGS if ROOT_CXX_STANDARD is not set.
Edited by Dmitri Konstantinov