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