Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  28 May 2019, Stefan Ritt, Info, MIDAS switching to Cmake 
    Reply  28 May 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
       Reply  28 May 2019, Stefan Ritt, Info, MIDAS switching to Cmake 
          Reply  29 May 2019, Stefan Ritt, Info, MIDAS switching to Cmake 
       Reply  03 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
          Reply  05 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
             Reply  17 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
                Reply  17 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
                Reply  17 Jun 2019, Stefan Ritt, Info, MIDAS switching to Cmake 
                   Reply  18 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
Message ID: 1558     Entry time: 17 Jun 2019     In reply to: 1553     Reply to this: 1562
Author: Stefan Ritt 
Topic: Info 
Subject: MIDAS switching to Cmake 
> - it looks like cmake does not like building variant executables and object files, i.e. "with ROOT" and "without ROOT".
> 
> I need to set "-DHAVE_ROOT" for building "with ROOT" and unset it via remove_definitions() for building "without ROOT",
> but remove_definitions() and add_definitions() do not work on a per-target basis, instead they operate
> per-directory and per-project.

You should not use per-directory and per-project definitions, but per-target definitions, such as

target_compile_options(mhttpd PRIVATE -DMG_ENABLE_SSL)

> In midas, we build mlogger without ROOT (to avoid tangling it with the ROOT RPATH and ROOT shared libraries),
> but if ROOT is present, we build rmlogger "with ROOT support". Same for the analyzer (mana.o and rmana.o).
> 
> For now we have this:
> - mana.o is built with ROOT if ROOT is detected
> - rmana.o is not built
> - rmlogger is not built (not clear why)

I added rmlogger to the install instructions. I believe it was always built, but just not installed into the /bin directory.

Stefan
ELOG V3.1.4-2e1708b5