Skip to content

Support to new cmake introduced a regression affecting legacy slots

The following discussion from !93 (merged) should be addressed:

  • @clemenci started a discussion:

    This introduced a subtle regression which causes weird failures in legacy slots.

The problem is that the change of position of find_package(GaudiProject) (before set_paths_from_projects) prevent the toolchain from finding it in upstream projects. The configuration of the projects is then slightly different, but causes (I ways I cannot understand) very weird changes in the builds, ranging from slightly different results in floating point numbers to memory corruption.

The main issue is that I needed the lookup of GaudiProject before use_heptools/inherit_heptools to use it detect if Gaudi is built with a new-style CMake configuration, but set_paths_from_projects should be called after use_heptools and before find_package(GaudiProject)...

CC: @cattanem, @bcouturi