CGNS: add CMake dependency (#24564)

This commit is contained in:
Christoph Conrads 2021-06-29 20:49:26 +02:00 committed by GitHub
parent c824cad2ea
commit f5474a2b8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')