chaco: fix build on macOS with Apple Clang 12 or greater (#29975)
This commit is contained in:
parent
f229f746db
commit
c364a04a42
@ -22,6 +22,8 @@ class Chaco(CMakePackage):
|
|||||||
depends_on('cmake@3.16:', type='build')
|
depends_on('cmake@3.16:', type='build')
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
return [
|
opts = [self.define_from_variant('BUILD_SHARED_LIBS', 'shared')]
|
||||||
self.define_from_variant('BUILD_SHARED_LIBS', 'shared')
|
if self.spec.satisfies('%apple-clang@12:'):
|
||||||
]
|
opts.append(self.define("CMAKE_C_FLAGS",
|
||||||
|
"-Wno-error=implicit-function-declaration"))
|
||||||
|
return opts
|
||||||
|
Loading…
Reference in New Issue
Block a user