kokkos: change build_environment.get_cmake_prefix_path to build_systems.cmake.get_cmake_prefix_path(self) (#47112)

This commit is contained in:
afzpatel 2024-10-21 22:46:26 -04:00 committed by GitHub
parent b582eacbc1
commit 149753a52e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -414,7 +414,7 @@ def test_run(self):
cmake = self.spec["cmake"].command
cmake_args = ["-DEXECUTABLE_OUTPUT_PATH=" + cmake_path]
if self.spec.satisfies("+rocm"):
prefix_paths = ";".join(spack.build_environment.get_cmake_prefix_path(self))
prefix_paths = ";".join(spack.build_systems.cmake.get_cmake_prefix_path(self))
cmake_args.append("-DCMAKE_PREFIX_PATH={0}".format(prefix_paths))
cmake(cmake_path, *cmake_args)