ftgl: Improve shared library building on macOS (#18970)
Add -DCMAKE_MACOSX_RPATH=ON to cmake.
This commit is contained in:
parent
5d70096e44
commit
4d586c598b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user