Prefer lb-host-binary-tag in GaudiProjectConfig.cmake
For some reason Gauss triggers another place where the host platform is discovered:
$ lb-dev Gauss/v54r4
$ make
...
-- Found Geant4Files v106r1: /cvmfs/lhcb.cern.ch/lib/lhcb/PARAM/Geant4Files/v106r1
Traceback (most recent call last):
File "/tmp/cburr/lbap-testing/GaussDev_v54r4/GaussDev_v54r4/build.x86_64-centos7-gcc9-opt/get_host_binary_tag.py", line 175, in <module>
print('-'.join([arch(), os_id(), compiler_id(), 'opt']))
File "/tmp/cburr/lbap-testing/GaussDev_v54r4/GaussDev_v54r4/build.x86_64-centos7-gcc9-opt/get_host_binary_tag.py", line 93, in _Linux_os
dist = platform.linux_distribution(full_distribution_name=False)
AttributeError: module 'platform' has no attribute 'linux_distribution'
CMake Error at /cvmfs/lhcb.cern.ch/lib/lhcb/GAUDI/GAUDI_v33r0/InstallArea/x86_64-centos7-gcc9-opt/cmake/BinaryTagUtils.cmake:104 (list):
list GET given empty list
Call Stack (most recent call first):
/cvmfs/lhcb.cern.ch/lib/lhcb/GAUDI/GAUDI_v33r0/InstallArea/x86_64-centos7-gcc9-opt/cmake/GaudiBuildFlags.cmake:18 (parse_binary_tag)
/tmp/cburr/lbap-testing/GaussDev_v54r4/my-env/lib/python3.8/site-packages/LbDevTools/data/cmake/GaudiProjectConfig.cmake:611 (include)
CMakeLists.txt:17 (gaudi_project)
I haven't made sense of why it's doing this but this fixes it.