Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  09 Jul 2021, Konstantin Olchanski, Bug Report, cmake question 
    Reply  13 Jul 2021, Konstantin Olchanski, Bug Report, cmake question 
       Reply  14 Jul 2021, Konstantin Olchanski, Bug Report, cmake question 
Message ID: 2256     Entry time: 09 Jul 2021     Reply to this: 2263
Author: Konstantin Olchanski 
Topic: Bug Report 
Subject: cmake question 
cmake check and mate in 1 move. please help.

the midas cmake file has a typo in the ROOT_CXX_FLAGS, I fixed it and now I am dead in the 
water, need help from cmake experts and pushers.

On Ubuntu:
ROOT_CXX_FLAGS has -std=c++14
midas cmake defines -std=gnu++11 (never mind that I asked for c++11, not "c++11 with GNU 
extensions")

the two compiler flags collide and the build explodes, the best I can tell c++11 prevails 
and ROOT header files blow up because they expect c++14.

if I remove the midas cmake request for c++11, -std=gnu++11 is gone, there is no conflict 
with ROOT C++14 request and the build works just fine.

but now it explodes on CentOS-7 because by default, c++11 is not enabled. (include <mutex> 
blows up).

what a mess.

K.O.
ELOG V3.1.4-2e1708b5