From 65fda72d7c8bf6107ebf4828338b45fbe3a6181e Mon Sep 17 00:00:00 2001 From: "Dr. Christian Tacke" <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Fri, 28 Aug 2020 23:13:53 +0200 Subject: [PATCH] davix: Improve shared library building on macOS (#18352) Add -DCMAKE_MACOSX_RPATH=ON to cmake. --- var/spack/repos/builtin/packages/davix/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/davix/package.py b/var/spack/repos/builtin/packages/davix/package.py index 4062fb4dae..e1845d549a 100644 --- a/var/spack/repos/builtin/packages/davix/package.py +++ b/var/spack/repos/builtin/packages/davix/package.py @@ -33,4 +33,6 @@ class Davix(CMakePackage): def cmake_args(self): cmake_args = ['-DCMAKE_CXX_STANDARD={0}'.format( self.spec.variants['cxxstd'].value)] + if 'darwin' in self.spec.architecture: + cmake_args.append('-DCMAKE_MACOSX_RPATH=ON') return cmake_args