Page MenuHomeHEPForge

Allow increase of C++ standard via environment variable

Authored by tlatham on Nov 15 2023, 12:55 PM.



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

Test Plan

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

rLAURA laura
Lint Not Applicable
Tests Not Applicable

Event Timeline

tlatham created this revision.
tlatham changed the visibility from "All Users" to "Public (No Login Required)".Nov 16 2023, 5:40 PM
tlatham changed the edit policy from "All Users" to "Laura (Project)".
tlatham added a project: Laura.
  • Add warning if requested C++ standard is too old

@jback, does this look ok? It's the same as the code we now have in #evtgen.

This revision is now accepted and ready to land.Nov 22 2023, 12:46 PM