Skip to content

Commit

Permalink
changing package file
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Dec 21, 2024
1 parent e4c745c commit 122e749
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,15 @@ def setup_run_environment(self, env):
self.spec.variants["precision"].value if self.spec.satisfies("@3.4.6:") else ("4", "d")
)
for suffix in precisions:
lib = find_libraries("libg2_" + suffix, root=self.prefix, shared=self.spec.satisfies("+shared"), recursive=True)
lib = find_libraries(
"libg2_" + suffix,
root=self.prefix,
shared=self.spec.satisfies("+shared"),
recursive=True,
)
env.set("G2_LIB" + suffix, lib[0])
env.set("G2_INC" + suffix, join_path(self.prefix, "include_" + suffix))

def check(self):
with working_dir(self.builder.build_directory):
with working_dir(self.build_directory):
make("test")

0 comments on commit 122e749

Please sign in to comment.