summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/raja/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/raja/package.py b/var/spack/repos/builtin/packages/raja/package.py
index 77f6246de7..8c3bcb67fd 100644
--- a/var/spack/repos/builtin/packages/raja/package.py
+++ b/var/spack/repos/builtin/packages/raja/package.py
@@ -126,7 +126,8 @@ class Raja(CachedCMakePackage, CudaPackage, ROCmPackage):
entries = []
entries.append(cmake_cache_path("BLT_SOURCE_DIR", spec['blt'].prefix))
- entries.append(cmake_cache_path("camp_DIR", spec['camp'].prefix))
+ if 'camp' in self.spec:
+ entries.append(cmake_cache_path("camp_DIR", spec['camp'].prefix))
entries.append(cmake_cache_option("BUILD_SHARED_LIBS", '+shared' in spec))
entries.append(cmake_cache_option("ENABLE_EXAMPLES", '+examples' in spec))
if spec.satisfies('@0.14.0:'):