openfoam-com: Fix flex dependency (#10956)

openfoam-com needs flex's FlexLexer.h, which can only be found if flex
is also a link dependency.
This commit is contained in:
Michael Kuhn 2019-03-22 12:46:53 +01:00 committed by Massimiliano Culpo
parent ba5f37ee26
commit b6185d4ad7

View file

@ -307,7 +307,7 @@ class OpenfoamCom(Package):
depends_on('cgal') depends_on('cgal')
# The flex restriction is ONLY to deal with a spec resolution clash # The flex restriction is ONLY to deal with a spec resolution clash
# introduced by the restriction within scotch! # introduced by the restriction within scotch!
depends_on('flex@:2.6.1,2.6.4:', type='build') depends_on('flex@:2.6.1,2.6.4:')
depends_on('cmake', type='build') depends_on('cmake', type='build')
# Require scotch with ptscotch - corresponds to standard OpenFOAM setup # Require scotch with ptscotch - corresponds to standard OpenFOAM setup