Skip to content

Update Sherpa lib dependencies for new function used in Sherpa_i since Sherpa 2.2.4.

Frank Siegert requested to merge fsiegert/atlasexternals:master into master

The function used in https://gitlab.cern.ch/atlas/athena/blob/master/Generators/Sherpa_i/src/Sherpa_i.cxx#L167 is defined in libSherpaTools.so, which is thus here added to the compulsory components of FindSherpa.cmake.

Local builds of Athena would otherwise always fail due to

[ 41%] Linking CXX shared module ../../x86_64-linux6-gcc62-opt/lib/libSherpa_i.so
CMakeFiles/Sherpa_i.dir/src/Sherpa_i.cxx.o: In function `Sherpa_i::genFinalize()':
/scratch/athena/Generators/Sherpa_i/src/Sherpa_i.cxx:141: undefined reference to `SHERPA::operator<<(std::ostream&, SHERPA::Variations const&)'
collect2: error: ld returned 1 exit status

Surprisingly it seems like the central release build succeeded so far, probably because it is using lazy linker settings?

Merge request reports