With newest dd4hep version, it need to add the cmake argument -DCMAKE_CXX_STANDARD=17
-DCMAKE_CXX_STANDARD=17