Skip to content

Commit

Permalink
only make serialbox a dep when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasjucker committed Nov 18, 2024
1 parent ba82f8f commit ee84da2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repos/c2sm/packages/icon/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ class Icon(AutotoolsPackage, CudaPackage):
depends_on('libxml2', when='+art')

for x in serialization_values:
depends_on('serialbox+fortran', when='serialization={0}'.format(x))

# WORKAROUND: A build and link dependency should imply that the same compiler is used. This enforces it.
depends_on('serialbox %nvhpc', when='%nvhpc')
depends_on('serialbox %gcc', when='%gcc')
depends_on('serialbox+fortran %nvhpc', when='serialization={0} %nvhpc'.format(x))
depends_on('serialbox+fortran %gcc', when='serialization={0} %gcc'.format(x))

depends_on('eccodes +fortran', when='+emvorado')
depends_on('eccodes', when='+grib2')
Expand Down

0 comments on commit ee84da2

Please sign in to comment.