Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  22 Sep 2025, Konstantin Olchanski, Info, switch midas to c++17 
    Reply  23 Sep 2025, Pavel Murat, Info, switch midas to c++17 
       Reply  23 Sep 2025, Konstantin Olchanski, Info, switch midas to c++17 
          Reply  23 Sep 2025, Pavel Murat, Info, switch midas to c++17 
    Reply  06 Nov 2025, Konstantin Olchanski, Info, switch midas to c++17 
       Reply  20 Nov 2025, Konstantin Olchanski, Info, switch midas to c++17 
          Reply  20 Nov 2025, Nick Hastings, Info, switch midas to c++17 
             Reply  25 Nov 2025, Konstantin Olchanski, Info, switch midas to c++17 
          Reply  24 Nov 2025, Stefan Ritt, Info, switch midas to c++17 
             Reply  25 Nov 2025, Konstantin Olchanski, Info, switch midas to c++17 
                Reply  26 Nov 2025, Stefan Ritt, Info, switch midas to c++17 
Message ID: 3144     Entry time: 26 Nov 2025     In reply to: 3141
Author: Stefan Ritt 
Topic: Info 
Subject: switch midas to c++17 
I switched from 

  target_compile_features(<target> PUBLIC css_std_17)

to

  set(CMAKE_CXX_STANDARD 17)
  set(CMAKE_CXX_STANDARD_REQUIRED ON)
  set(CMAKE_CXX_EXTENSIONS OFF)   # optional: disables GNU extensions

Which is now global in the CMakeLists.txt, so we only have to deal with one location if we want to change it. It also turns off the g++ options. On my
Mac I get now a clean

  -std=c++17

Please everybody test on your side. Change is committed.

Stefan
ELOG V3.1.4-2e1708b5