Commit 5548c0b6 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Merge branch 'FJContribCC9Fix-master-20220704' into 'master'

FindFastJet.cmake CentOS 9 Compatibility Fix, master branch (2022.07.04.)

Closes ATLJETMET-1435

See merge request !970
parents 8da3df1c 0d5d1320
Pipeline #4181667 passed with stage
in 107 minutes and 46 seconds
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
#
# - Locate FastJet library and header files
# Defines:
......@@ -25,14 +25,13 @@ lcg_external_module( NAME FastJet
DEFAULT_COMPONENTS fastjet fastjetplugins fastjettools siscone
siscone_spherical
COMPULSORY_COMPONENTS fastjet )
if( FASTJET_LIBRARIES )
find_library( _gfortran NAMES gfortran HINTS ENV LD_LIBRARY_PATH )
if( _gfortran )
list( APPEND FASTJET_LIBRARIES
$<BUILD_INTERFACE:${_gfortran}>
$<INSTALL_INTERFACE:gfortran> )
endif()
unset( _gfortran )
# If a fortran compiler is available, and it's gfortran, then link
# against the gfortran library as well. Since FastJet may or may not
# use Fortran code in such a setup. If it doesn't, -Wl,--only-needed
# should take care of removing the dependency during linking.
if( FASTJET_LIBRARIES AND ( "${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU" ) )
list( APPEND FASTJET_LIBRARIES gfortran )
endif()
# Find the fastjet-config script.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment