gsl: set GSL_ROOT_DIR (#38464)

Co-authored-by: jmcarcell <jmcarcell@users.noreply.github.com>
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Juan Miguel Carceller
2023-06-19 22:37:37 +02:00
committed by GitHub
parent 55152781cb
commit a7e307bd81

View File

@@ -55,3 +55,8 @@ def configure_args(self):
configure_args.append("CBLAS_LIBS=%s" % self.spec["blas"].libs.ld_flags) configure_args.append("CBLAS_LIBS=%s" % self.spec["blas"].libs.ld_flags)
return configure_args return configure_args
def setup_run_environment(self, env):
# cmake looks for GSL_ROOT_DIR to find GSL so this helps pick the spack one
# when there are multiple installations (e.g. a system one and a spack one)
env.set("GSL_ROOT_DIR", self.prefix)