gl2ps: set CMAKE_MACOSX_RPATH=True to build (#32777)

This commit is contained in:
Laurent Aphecetche 2022-09-29 11:50:08 +02:00 committed by GitHub
parent b37a1ec12b
commit 17d9960424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,9 @@ def cmake_args(self):
self.define("OPENGL_egl_LIBRARY", "IGNORE"),
self.define("OPENGL_glu_LIBRARY", "IGNORE"),
]
if spec.satisfies("platform=darwin"):
options.append(self.define("CMAKE_MACOSX_RPATH", True))
if "~doc" in spec:
# Make sure we don't look.
options.append(self.define("CMAKE_DISABLE_FIND_PACKAGE_LATEX", True))