From 17d9960424c68a23fb4aa931d0e87411357c77ac Mon Sep 17 00:00:00 2001 From: Laurent Aphecetche Date: Thu, 29 Sep 2022 11:50:08 +0200 Subject: [PATCH] gl2ps: set CMAKE_MACOSX_RPATH=True to build (#32777) --- var/spack/repos/builtin/packages/gl2ps/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/gl2ps/package.py b/var/spack/repos/builtin/packages/gl2ps/package.py index 09030efe44..f64d3e4423 100644 --- a/var/spack/repos/builtin/packages/gl2ps/package.py +++ b/var/spack/repos/builtin/packages/gl2ps/package.py @@ -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))