scorpio: fix build on macOS with Apple Clang 12 or greater (#29977)
This commit is contained in:
parent
7385ea5f01
commit
f229f746db
1 changed files with 7 additions and 0 deletions
|
@ -27,3 +27,10 @@ class Scorpio(CMakePackage):
|
||||||
depends_on('cmake@3.16:', type='build')
|
depends_on('cmake@3.16:', type='build')
|
||||||
depends_on('mpi')
|
depends_on('mpi')
|
||||||
depends_on('hdf5@1.10.6: +hl +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
|
||||||
|
|
Loading…
Reference in a new issue