davix: Improve shared library building on macOS (#18352)
Add -DCMAKE_MACOSX_RPATH=ON to cmake.
This commit is contained in:
parent
9525c530d5
commit
65fda72d7c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue