summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-11-22 22:07:54 +0100
committerGitHub <noreply@github.com>2021-11-22 22:07:54 +0100
commit6f8fd5b7a7096a1eee29988969197c91f7ba889f (patch)
tree93b25c85d65dfdc0bd1ff74f19596dbc3f9c3b76
parent5eba5dc271101df658f8dd132015cb90687d8a3d (diff)
downloadspack-6f8fd5b7a7096a1eee29988969197c91f7ba889f.tar.gz
spack-6f8fd5b7a7096a1eee29988969197c91f7ba889f.tar.bz2
spack-6f8fd5b7a7096a1eee29988969197c91f7ba889f.tar.xz
spack-6f8fd5b7a7096a1eee29988969197c91f7ba889f.zip
raja: fix recipe for old versions (#27591)
Raja didn't depend on camp prior to v0.12.0
-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:'):