vtk-m: support kokkos@4: (#44850)
This commit is contained in:
parent
05c7ff4595
commit
c4194e4f58
@ -196,6 +196,9 @@ def cmake_args(self):
|
||||
# vtk-m detectes tbb via TBB_ROOT env var
|
||||
os.environ["TBB_ROOT"] = spec["tbb"].prefix
|
||||
|
||||
if "+kokkos" in spec and "+rocm" in spec and spec.satisfies("^kokkos@4:"):
|
||||
options.append(f"-DCMAKE_CXX_COMPILER:BOOL={spec['hip'].prefix.bin.hipcc}")
|
||||
|
||||
# Support for relocatable code
|
||||
if "~shared" in spec and "+fpic" in spec:
|
||||
options.append("-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON")
|
||||
|
Loading…
Reference in New Issue
Block a user