summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/casacore/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/casacore/package.py b/var/spack/repos/builtin/packages/casacore/package.py
index 5bbc1b51bb..ad7d415027 100644
--- a/var/spack/repos/builtin/packages/casacore/package.py
+++ b/var/spack/repos/builtin/packages/casacore/package.py
@@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
+import os
class Casacore(CMakePackage):
@@ -22,6 +23,8 @@ class Casacore(CMakePackage):
version('3.0.0', sha256='6f0e68fd77b5c96299f7583a03a53a90980ec347bff9dfb4c0abb0e2933e6bcb')
version('2.4.1', sha256='58eccc875053b2c6fe44fe53b6463030ef169597ec29926936f18d27b5087d63')
+ depends_on('cmake@3.7.1:', type='build')
+
variant('openmp', default=False, description='Build OpenMP support')
variant('shared', default=True, description='Build shared libraries')
variant('readline', default=True, description='Build readline support')
@@ -73,3 +76,7 @@ class Casacore(CMakePackage):
args.append('-DBUILD_TESTING=OFF')
return args
+
+ def patch(self):
+ # Rely on CMake ability to find hdf5, available since CMake 3.7.X
+ os.remove('cmake/FindHDF5.cmake')