gmsh %oneapi: add cflag: -Wno-error=implicit-function-declaration (#39476)

This commit is contained in:
eugeneswalker 2023-08-17 03:09:07 -07:00 committed by GitHub
parent fb598baa53
commit 54ea860b37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,12 @@ class Gmsh(CMakePackage):
conflicts("+oce", when="^gmsh@4.10:4.10.3")
conflicts("+metis", when="+external", msg="External Metis cannot build with GMSH")
def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.satisfies("%oneapi"):
flags.append("-Wno-error=implicit-function-declaration")
return (flags, None, None)
def cmake_args(self):
spec = self.spec