mgard@2020-10-01 %oneapi@2023: turn of c++11-narrowing via cxxflags (#40743)

This commit is contained in:
eugeneswalker 2023-10-27 11:08:33 -07:00 committed by GitHub
parent 069762cd37
commit f2963e41ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,12 @@ class Mgard(CMakePackage, CudaPackage):
) )
conflicts("%gcc@:7", when="@2022-11-18:", msg="requires std::optional and other c++17 things") conflicts("%gcc@:7", when="@2022-11-18:", msg="requires std::optional and other c++17 things")
def flag_handler(self, name, flags):
if name == "cxxflags":
if self.spec.satisfies("@2020-10-01 %oneapi@2023:"):
flags.append("-Wno-error=c++11-narrowing")
return (flags, None, None)
def cmake_args(self): def cmake_args(self):
spec = self.spec spec = self.spec
args = ["-DBUILD_TESTING=OFF"] args = ["-DBUILD_TESTING=OFF"]