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.
The modified implementation only allows the value to be changed if the specified standard is newer than our default, currently C++17.
Details
Details
Configured the project with the environment variable set to 14 and 20 and obtained the expected behaviour: no change, standard bumped to C++20.
Diff Detail
Diff Detail
- Repository
- rEVTGEN evtgen
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
The changes look good to me. Ok, understood that this is just avoiding to use an user defined CMAKE_CXX_STANDARD if it is lower than our standard.
Comment Actions
Thanks. @abudinen, I've tried to improve the clarity of the description following our discussion.