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 
Message ID: 3128     Entry time: 20 Nov 2025     In reply to: 3125
Author: Nick Hastings 
Topic: Info 
Subject: switch midas to c++17 
> I notice the cmake does not actually pass "-std=c++17" to the c++ compiler, and on U-20, it is likely 
> the default c++14 is used. cmake always does the wrong thing and this will need to be fixed later.

Does adding

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

Get it to do the right thing?

Cheers,

Nick..
ELOG V3.1.4-2e1708b5