pythia6: set CMAKE_MACOSX_RPATH=True to build on macos (#33082)

This commit is contained in:
Laurent Aphecetche 2022-10-07 20:53:41 +02:00 committed by GitHub
parent a4651a2a02
commit a2d7776c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,4 +153,6 @@ def setup_build_environment(self, env):
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