acts icon indicating copy to clipboard operation
acts copied to clipboard

Bug: _acts_dfelibs_version unset in CMakeLists.txt

Open wdconinc opened this issue 1 year ago • 5 comments

The CMake variable _acts_dfelibs_version is used in the find_package call but is not set to any value. The minimum version of dfelibs is likely the released version in the ACTS fork of dfelibs, but this released version does not include that same release version in the CMake config, so find_package would not recognize it as such.

Resolving this likely requires two step:

  • a new release of acts-project/dfelibs with a corrected CMakeLists.txt,
  • requiring that new release as the minimum dfelibs version in the CMakeLists.txt here.

Alternatively a comment in CMakeLists.txt with a statement why no minimum version is defined, but which one effectively applies.

wdconinc avatar Jul 30 '24 18:07 wdconinc

@fredevb @asalzburger is this something we lost in the CMake refactor when getting traccc/detray in as dependencies?

andiwand avatar Jul 31 '24 06:07 andiwand

Related to this, the target that is used in e.g. Examples/Io/Csv/CMakeLists.txt is dfelibs, while the target exposed by an external install is dfelibs::dfelibs, in a namespace.

wdconinc avatar Aug 06 '24 15:08 wdconinc

Other location where dfelibs is linked is in https://github.com/acts-project/acts/blob/ca697991df842e13f7897cd3f793038860f822c7/Examples/Framework/CMakeLists.txt#L36 From what I can tell, that's independent of the csv example.

wdconinc avatar Aug 06 '24 15:08 wdconinc

The instance in the framework example is necessary due to use of dfelibs in the sequence: https://github.com/acts-project/acts/blob/ca697991df842e13f7897cd3f793038860f822c7/Examples/Framework/src/Framework/Sequencer.cpp#L53-L54

wdconinc avatar Aug 06 '24 15:08 wdconinc

This issue/PR has been automatically marked as stale because it has not had recent activity. The stale label will be removed if any interaction occurs.

github-actions[bot] avatar Sep 05 '24 17:09 github-actions[bot]