summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/cgns/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cgns/package.py b/var/spack/repos/builtin/packages/cgns/package.py
index 799a817454..afef1fd609 100644
--- a/var/spack/repos/builtin/packages/cgns/package.py
+++ b/var/spack/repos/builtin/packages/cgns/package.py
@@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import sys
+
from spack import *
@@ -42,6 +43,8 @@ class Cgns(CMakePackage):
variant('legacy', default=False, description='Enable legacy options')
variant('mem_debug', default=False, description='Enable memory debugging option')
+ depends_on('cmake@3.8:', when='@4.2:', type='build')
+ depends_on('cmake@2.8:', when='@:4.1.99', type='build')
depends_on('hdf5~mpi', when='+hdf5~mpi')
depends_on('hdf5+mpi', when='+hdf5+mpi')
depends_on('mpi', when='+mpi')