diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2019-09-18 22:46:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-18 22:46:16 -0500 |
commit | a4e585bad5da8ea9cce239bede5efd1e6138f7d9 (patch) | |
tree | cae91ced9f9e8b610d6112c0b5135e940541debb | |
parent | 964500399b177bc45dc00b9789f9ae8fc7c7d834 (diff) | |
download | spack-a4e585bad5da8ea9cce239bede5efd1e6138f7d9.tar.gz spack-a4e585bad5da8ea9cce239bede5efd1e6138f7d9.tar.bz2 spack-a4e585bad5da8ea9cce239bede5efd1e6138f7d9.tar.xz spack-a4e585bad5da8ea9cce239bede5efd1e6138f7d9.zip |
googletest: fix darwin install name (#12871)
-rw-r--r-- | var/spack/repos/builtin/packages/googletest/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |