ftgl: Improve shared library building on macOS (#18970)

Add -DCMAKE_MACOSX_RPATH=ON to cmake.
This commit is contained in:
Dr. Christian Tacke 2020-10-05 16:56:52 +02:00 committed by GitHub
parent 5d70096e44
commit 4d586c598b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,8 @@ class Ftgl(CMakePackage):
def cmake_args(self):
spec = self.spec
args = ['-DBUILD_SHARED_LIBS={0}'.format(spec.satisfies('+shared'))]
if 'darwin' in self.spec.architecture:
args.append('-DCMAKE_MACOSX_RPATH=ON')
return args
# FIXME: See doc variant comment