summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/heffte/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/heffte/package.py b/var/spack/repos/builtin/packages/heffte/package.py
index 7ad6c88043..9496e1e23a 100644
--- a/var/spack/repos/builtin/packages/heffte/package.py
+++ b/var/spack/repos/builtin/packages/heffte/package.py
@@ -142,7 +142,12 @@ class Heffte(CMakePackage, CudaPackage, ROCmPackage):
cmake_dir = self.test_suite.current_test_cache_dir.testing
options = [cmake_dir]
- options.append(self.define("Heffte_DIR", self.spec.prefix.lib.cmake.Heffte))
+ # changing the default install path search to newer cmake convention
+ if self.spec.satisfies("@develop"):
+ options.append(self.define("Heffte_ROOT", self.spec.prefix))
+ else:
+ options.append(self.define("Heffte_DIR", self.spec.prefix.lib.cmake.Heffte))
+
if self.spec.satisfies("+rocm"):
# path name is 'hsa-runtime64' but python cannot have '-' in variable name
hsa_runtime = join_path(self.spec["hsa-rocr-dev"].prefix.lib.cmake, "hsa-runtime64")