hdf5-vol-cache %oneapi: cflags: add -Wno-error=incompatible-function-pointer-types (#39453)

This commit is contained in:
eugeneswalker 2023-08-16 08:56:09 -07:00 committed by GitHub
parent 00f8f5898a
commit 86485dea14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,12 @@ class Hdf5VolCache(CMakePackage):
depends_on("hdf5@1.14: +mpi +threadsafe")
depends_on("hdf5-vol-async")
def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.satisfies("%oneapi"):
flags.append("-Wno-error=incompatible-function-pointer-types")
return (flags, None, None)
def setup_run_environment(self, env):
env.prepend_path("HDF5_PLUGIN_PATH", self.spec.prefix.lib)