kokkos package: +cuda requires +wrapper when compiler is not clang (#21941)
This check is performed in cmake_args rather than with a 'conflicts' statement because matching on !clang (i.e. any compiler that is not clang) cannot currently be done with our spec syntax.
This commit is contained in:
parent
d7595d6703
commit
36ae5ac6ef
@ -217,6 +217,11 @@ def setup_dependent_package(self, module, dependent_spec):
|
||||
|
||||
def cmake_args(self):
|
||||
spec = self.spec
|
||||
|
||||
if spec.satisfies('~wrapper+cuda') and not spec.satisfies('%clang'):
|
||||
raise InstallError("Kokkos requires +wrapper when using +cuda"
|
||||
"without clang")
|
||||
|
||||
options = []
|
||||
|
||||
isdiy = "+diy" in spec
|
||||
|
Loading…
Reference in New Issue
Block a user