IAP GITLAB

Skip to content

Try to manually find Pythia8 if `pythia8-config` is not found.

Remy Prechelt requested to merge rprechelt-manual-pythia-search into master

The current method for finding Pythia is to search for the pythia8-config binary and then use the various executable flags to populate the PYTHIA-* CMake variables. On recent versions of Fedora and CentOS, the pythia8 and pythia8-devel packages do not provide pythia8-config which causes the current FindPythia module to fail (despite Pythia8 being installed and available).

This change now uses find_path and find_library to manually find Pythia8 if pythia8-config is not found. This fixes the build in my CentOS 7 and F32 containers.

To make things extra clear, the user is warned that pythia8-config was not found and that a manual find is being attempted. Since Pythia is disabled by default, this will only affect builds for which WITH_PYTHIA=ON has been explicitly set.

Merge request reports