diff options
author | Robert Cohn <robert.s.cohn@intel.com> | 2024-07-03 17:04:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 14:04:38 -0700 |
commit | b4748de5a94dda2004167f24b54f3ab9d0c17fb4 (patch) | |
tree | 02553fcde08e67db07dba3e072b598b5778d4c2b /var | |
parent | 8f2532c624f0e6cb727a17cdaa27e456081d4826 (diff) | |
download | spack-b4748de5a94dda2004167f24b54f3ab9d0c17fb4.tar.gz spack-b4748de5a94dda2004167f24b54f3ab9d0c17fb4.tar.bz2 spack-b4748de5a94dda2004167f24b54f3ab9d0c17fb4.tar.xz spack-b4748de5a94dda2004167f24b54f3ab9d0c17fb4.zip |
[openfoam]: use latest cgal (#45003)
* [openfoam]: use latest cgal
* add version checks for CGAL
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam/package.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/openfoam/package.py b/var/spack/repos/builtin/packages/openfoam/package.py index 0919b9abd6..8558e49b09 100644 --- a/var/spack/repos/builtin/packages/openfoam/package.py +++ b/var/spack/repos/builtin/packages/openfoam/package.py @@ -369,8 +369,12 @@ class Openfoam(Package): # See https://github.com/spack/spack/pull/22303 for reference depends_on(Boost.with_default_variants) - # OpenFOAM does not play nice with CGAL 5.X - depends_on("cgal@:4") + # Earlier versions of OpenFOAM may not work with CGAL 5.6. I do + # not know which OpenFOAM added support for 5.x and conservatively + # use 2312 in the check. + depends_on("cgal", when="@2312:") + depends_on("cgal@:4", when="@:2306") + # The flex restriction is ONLY to deal with a spec resolution clash # introduced by the restriction within scotch! depends_on("flex@:2.6.1,2.6.4:") |