summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/scorpio/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/scorpio/package.py b/var/spack/repos/builtin/packages/scorpio/package.py
index 129d496d2b..e1186f4627 100644
--- a/var/spack/repos/builtin/packages/scorpio/package.py
+++ b/var/spack/repos/builtin/packages/scorpio/package.py
@@ -27,3 +27,10 @@ class Scorpio(CMakePackage):
depends_on('cmake@3.16:', type='build')
depends_on('mpi')
depends_on('hdf5@1.10.6: +hl +mpi')
+
+ def cmake_args(self):
+ opts = []
+ if self.spec.satisfies('%apple-clang@12:'):
+ opts.append(self.define("CMAKE_C_FLAGS",
+ "-Wno-error=implicit-function-declaration"))
+ return opts