davix: Improve shared library building on macOS (#18352)

Add -DCMAKE_MACOSX_RPATH=ON to cmake.
This commit is contained in:
Dr. Christian Tacke 2020-08-28 23:13:53 +02:00 committed by GitHub
parent 9525c530d5
commit 65fda72d7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,4 +33,6 @@ class Davix(CMakePackage):
def cmake_args(self): def cmake_args(self):
cmake_args = ['-DCMAKE_CXX_STANDARD={0}'.format( cmake_args = ['-DCMAKE_CXX_STANDARD={0}'.format(
self.spec.variants['cxxstd'].value)] self.spec.variants['cxxstd'].value)]
if 'darwin' in self.spec.architecture:
cmake_args.append('-DCMAKE_MACOSX_RPATH=ON')
return cmake_args return cmake_args