From a4e585bad5da8ea9cce239bede5efd1e6138f7d9 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 18 Sep 2019 22:46:16 -0500 Subject: googletest: fix darwin install name (#12871) --- var/spack/repos/builtin/packages/googletest/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/googletest/package.py b/var/spack/repos/builtin/packages/googletest/package.py index 806ecf01ff..06e8969159 100644 --- a/var/spack/repos/builtin/packages/googletest/package.py +++ b/var/spack/repos/builtin/packages/googletest/package.py @@ -59,3 +59,9 @@ class Googletest(CMakePackage): else: install('libgtest.a', prefix.lib) install('libgtest_main.a', prefix.lib) + + @run_after('install') + def darwin_fix(self): + # The shared library is not installed correctly on Darwin; fix this + if self.spec.satisfies('platform=darwin'): + fix_darwin_install_name(self.prefix.lib) -- cgit v1.2.3-70-g09d2