Skip to content

ACTS-27 cmake options followup

Moritz Kiehn requested to merge ACTSFW-27-cmake_options_followup into master

This is the followup MR discussed in !47 (merged).

  • OpenMP is on by default, unless you are using OSX.
  • Added add_subdirectory_if command to simplify handling of optional components. This also prints automatic messages about enabled/disabled components.
  • Consistently use build flags.

As already discussed in !47 (merged), the build flags are used to selectively include subdirectories instead of manually wrapping large parts of the CMakeLists.txt in a if()/endif() statement. There are a few cases where this was not quite possible, e.g. Examples/Fatras. In the long run, this might be split into Examples/Fatras which requires Pythia8 and Examples/FatrasDD4hep which requires Pythia8 and DD4hep.

Merge request reports