heffte: Update @develop for newer cmake (#47067)

This commit is contained in:
Miroslav Stoyanov 2024-10-19 11:12:41 -04:00 committed by GitHub
parent 296f99d800
commit 411ea019f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,12 @@ def test_make_test(self):
cmake_dir = self.test_suite.current_test_cache_dir.testing
options = [cmake_dir]
# 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")