Skip to content

updated lhapdf-config to use simpler logic

Hannes Mildner requested to merge hmildner/athena:main-new-lhapdf-config into main

Instead of the old logic to find the LHAPDF data and libraries, which looped over various options to find the correct one, we now:

  • Get the libraries/includes from the new variable LHAPDF_INSTAL_DIR
  • Pick the first element of LHAPDF_DATA_PATH as the datadir At the very least this should make the script easier to maintain and the logic more transparent. It was tested that it returns the same output as before. The only real difference is that the first entry of LHAPDF_DATA_PATH needs to be the correct one, but this should always be the case thanks to https://gitlab.cern.ch/atlas/atlasexternals/-/blob/main/Build/AtlasLCG/modules/FindLhapdf.cmake

Merge request reports