summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/warpx/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/warpx/package.py b/var/spack/repos/builtin/packages/warpx/package.py
index 1b9cc4b727..07068f950a 100644
--- a/var/spack/repos/builtin/packages/warpx/package.py
+++ b/var/spack/repos/builtin/packages/warpx/package.py
@@ -225,6 +225,10 @@ class Warpx(CMakePackage):
if "+sensei" in spec:
args.append(self.define("SENSEI_DIR", spec["sensei"].prefix.lib.cmake))
+ # WarpX uses CCache by default, interfering with Spack wrappers
+ ccache_var = "CCACHE_PROGRAM" if spec.satisfies("@:24.01") else "WarpX_CCACHE"
+ args.append(self.define(ccache_var, False))
+
return args
@property