gmsh %oneapi: add cflag: -Wno-error=implicit-function-declaration (#39476)
This commit is contained in:
parent
fb598baa53
commit
54ea860b37
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue