summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLaurent Aphecetche <laurent.aphecetche@gmail.com>2022-10-07 20:53:41 +0200
committerGitHub <noreply@github.com>2022-10-07 11:53:41 -0700
commita2d7776c95920109c879f10b7d6e953f3190776d (patch)
treea8c2756678ddbbb55b0331990244e1a1f5a9350b /var
parenta4651a2a02920729a0050b2739ea36fc7d315802 (diff)
downloadspack-a2d7776c95920109c879f10b7d6e953f3190776d.tar.gz
spack-a2d7776c95920109c879f10b7d6e953f3190776d.tar.bz2
spack-a2d7776c95920109c879f10b7d6e953f3190776d.tar.xz
spack-a2d7776c95920109c879f10b7d6e953f3190776d.zip
pythia6: set CMAKE_MACOSX_RPATH=True to build on macos (#33082)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pythia6/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pythia6/package.py b/var/spack/repos/builtin/packages/pythia6/package.py
index d637b0eb97..32d9ef181d 100644
--- a/var/spack/repos/builtin/packages/pythia6/package.py
+++ b/var/spack/repos/builtin/packages/pythia6/package.py
@@ -153,4 +153,6 @@ class Pythia6(CMakePackage):
def cmake_args(self):
args = ["-DPYTHIA6_VERSION={0}".format(self.version.dotted)]
+ if self.spec.satisfies("platform=darwin"):
+ args.append(self.define("CMAKE_MACOSX_RPATH", True))
return args